summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_cache.cpp
diff options
context:
space:
mode:
author风青山 <idleman@yeah.net>2023-10-14 16:45:27 +0800
committer风青山 <idleman@yeah.net>2023-10-15 00:16:52 +0800
commit30904ed3bc6ba619e32742a1b838130609ab7949 (patch)
tree352dcbc5d6ea77db97c0ae15a69e95d4158bbdaa /modules/gdscript/gdscript_cache.cpp
parenta574c0296b38d5f786f249b12e6251e562c528cc (diff)
downloadredot-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