Merge pull request #25983 from JFonS/fix_23960

Fix update of canvas AABB with update_when_visible
This commit is contained in:
Rémi Verschelde 2019-02-20 13:43:14 +01:00 committed by GitHub
commit 310c755a0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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