diff --git a/scene/3d/visual_instance.cpp b/scene/3d/visual_instance.cpp index 4661f0fcd61..71dd5cf468d 100644 --- a/scene/3d/visual_instance.cpp +++ b/scene/3d/visual_instance.cpp @@ -74,10 +74,10 @@ void VisualInstance::set_instance_use_identity_transform(bool p_enable) { if (is_inside_tree()) { if (p_enable) { // want to make sure instance is using identity transform - VisualServer::get_singleton()->instance_set_transform(instance, get_global_transform()); + VisualServer::get_singleton()->instance_set_transform(instance, Transform()); } else { // want to make sure instance is up to date - VisualServer::get_singleton()->instance_set_transform(instance, Transform()); + VisualServer::get_singleton()->instance_set_transform(instance, get_global_transform()); } } }