summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-08-16 16:48:05 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-08-16 16:49:04 +0200
commit1dcb45a79ccdf9631056b7200c941af6bfde1e82 (patch)
tree5c2f6bc720c14c174610df8d702ba662d60358c3
parent90f90cbcb0cf2c44a3114048accfd5b407c4ac98 (diff)
downloadredot-engine-1dcb45a79ccdf9631056b7200c941af6bfde1e82.tar.gz
Fix gizmo for `BoxShape3D`
-rw-r--r--editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.cpp b/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.cpp
index b967cb7ccd..3becc9c9fd 100644
--- a/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.cpp
+++ b/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.cpp
@@ -301,7 +301,7 @@ void CollisionShape3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo
EditorUndoRedoManager *ur = EditorUndoRedoManager::get_singleton();
ur->create_action(TTR("Change Box Shape Size"));
ur->add_do_method(ss.ptr(), "set_size", ss->get_size());
- ur->add_do_method(cs, "set_position", cs->get_global_position());
+ ur->add_do_method(cs, "set_global_position", cs->get_global_position());
ur->add_undo_method(ss.ptr(), "set_size", p_restore);
ur->add_undo_method(cs, "set_global_position", initial_transform.get_origin());
ur->commit_action();