mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 19:12:24 -05:00
Merge pull request #25983 from JFonS/fix_23960
Fix update of canvas AABB with update_when_visible
This commit is contained in:
commit
310c755a0f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue