mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fix update of canvas AABB with update_when_visible
Ensure the AABB of canvas items is always updated when `update_when_visible` is enabled.
This commit is contained in:
parent
006561a081
commit
964338b06b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user