summaryrefslogtreecommitdiff
path: root/scene/3d/visual_instance.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-12 20:35:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-12 20:35:46 -0300
commita2903fc51d1d20eba4dc451bdacbe477d6670163 (patch)
treebbcac01f2c30ca1e104b11321e5c7a6930f51e59 /scene/3d/visual_instance.cpp
parentda477b76a98ee7ca4ac16773d3baf1299e053da7 (diff)
Must now register with set_transform_notify() to get NOTIFICATION_TRANSFORM_CHANGED
Diffstat (limited to 'scene/3d/visual_instance.cpp')
-rw-r--r--scene/3d/visual_instance.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/visual_instance.cpp b/scene/3d/visual_instance.cpp
index 466c273154..e708c83545 100644
--- a/scene/3d/visual_instance.cpp
+++ b/scene/3d/visual_instance.cpp
@@ -162,6 +162,7 @@ VisualInstance::VisualInstance()
instance = VisualServer::get_singleton()->instance_create();
VisualServer::get_singleton()->instance_attach_object_instance_ID( instance, get_instance_ID() );
layers=1;
+ set_notify_transform(true);
}