diff options
author | JFonS <joan.fonssanchez@gmail.com> | 2019-02-17 20:28:00 +0100 |
---|---|---|
committer | JFonS <joan.fonssanchez@gmail.com> | 2019-02-17 20:28:00 +0100 |
commit | 964338b06b5f72da909980acada4f08cb179e192 (patch) | |
tree | fc81e8ff4e672eeaa9f85fbe45f4b469535e32fd /servers/visual/rasterizer.h | |
parent | 006561a0815016bf89ab604371dd0ae29b5c63bd (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.h | 2 |
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 |