Fix global transform validity for Node2D and Control
Set global transform to invalid when changing transform
This commit is contained in:
parent
eca6f0eb54
commit
152572ac38
7 changed files with 141 additions and 14 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue