diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-08-23 13:27:17 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-08-23 13:28:36 -0300 |
commit | a1b594c2fc4c82c9dca847f8431852a970225e1a (patch) | |
tree | 3c94c8b461300cb7e3d92393625fb3ffa16bfee3 /scene/3d/remote_transform.cpp | |
parent | 0edb50f629bd878d2b8c98d1a6f50c23316f1ac2 (diff) | |
download | redot-engine-a1b594c2fc4c82c9dca847f8431852a970225e1a.tar.gz |
Switched AnimatedTexture to a readers-writers lock, solves a race condition and fixes #20221
Diffstat (limited to 'scene/3d/remote_transform.cpp')
-rw-r--r-- | scene/3d/remote_transform.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/3d/remote_transform.cpp b/scene/3d/remote_transform.cpp index 2156e24cd0..c12e49fb47 100644 --- a/scene/3d/remote_transform.cpp +++ b/scene/3d/remote_transform.cpp @@ -124,8 +124,10 @@ void RemoteTransform::_notification(int p_what) { void RemoteTransform::set_remote_node(const NodePath &p_remote_node) { remote_node = p_remote_node; - if (is_inside_tree()) + if (is_inside_tree()) { _update_cache(); + _update_remote(); + } update_configuration_warning(); } |