diff options
author | 风青山 <idleman@yeah.net> | 2023-10-14 16:45:27 +0800 |
---|---|---|
committer | 风青山 <idleman@yeah.net> | 2023-10-15 00:16:52 +0800 |
commit | 30904ed3bc6ba619e32742a1b838130609ab7949 (patch) | |
tree | 352dcbc5d6ea77db97c0ae15a69e95d4158bbdaa /modules/gdscript/gdscript_cache.cpp | |
parent | a574c0296b38d5f786f249b12e6251e562c528cc (diff) | |
download | redot-engine-30904ed3bc6ba619e32742a1b838130609ab7949.tar.gz |
Fix cannot update remote after disabling `use_global_coordinates` in `RemoteTransform2D`
Due to the optimization in `CanvasItem`, `global_transform` is only
updated when `get_global_transform()` is called, and then notify
`NOTIFICATION_TRANSFORM_CHANGED`. That is, in the case where
`global_transform` is not obtained, the notification will not be sent.
So we use `NOTIFICATION_LOCAL_TRANSFORM_CHANGED` in this case. Use in
combination to prevent certain optimizations.
Same change for `RemoteTransform3D`, to prevent the same optimization
from being used in `Node3D` in the future.
Diffstat (limited to 'modules/gdscript/gdscript_cache.cpp')
0 files changed, 0 insertions, 0 deletions