mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix global transform validity for Node2D and Control
Set global transform to invalid when changing transform
This commit is contained in:
@@ -1734,6 +1734,10 @@ void Control::_size_changed() {
|
||||
if (pos_changed && !size_changed) {
|
||||
_update_canvas_item_transform(); //move because it won't be updated
|
||||
}
|
||||
} else {
|
||||
if (pos_changed) {
|
||||
_notify_transform();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user