summaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer.h
diff options
context:
space:
mode:
authorJFonS <joan.fonssanchez@gmail.com>2019-02-17 20:28:00 +0100
committerJFonS <joan.fonssanchez@gmail.com>2019-02-17 20:28:00 +0100
commit964338b06b5f72da909980acada4f08cb179e192 (patch)
treefc81e8ff4e672eeaa9f85fbe45f4b469535e32fd /servers/visual/rasterizer.h
parent006561a0815016bf89ab604371dd0ae29b5c63bd (diff)
Fix update of canvas AABB with update_when_visible
Ensure the AABB of canvas items is always updated when `update_when_visible` is enabled.
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r--servers/visual/rasterizer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index 33081dcd0c..340176cdde 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