mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #25983 from JFonS/fix_23960
Fix update of canvas AABB with update_when_visible
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user