From 964338b06b5f72da909980acada4f08cb179e192 Mon Sep 17 00:00:00 2001 From: JFonS Date: Sun, 17 Feb 2019 20:28:00 +0100 Subject: [PATCH] Fix update of canvas AABB with update_when_visible Ensure the AABB of canvas items is always updated when `update_when_visible` is enabled. --- servers/visual/rasterizer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 33081dcd0ca..340176cddee 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -870,7 +870,7 @@ public: Rect2 global_rect_cache; const Rect2 &get_rect() const { - if (custom_rect || !rect_dirty) + if (custom_rect || (!rect_dirty && !update_when_visible)) return rect; //must update rect