summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-17 11:27:28 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-17 11:27:28 +0200
commita42f95f9e26fcd8be952b7db5cd85961114fe335 (patch)
tree1d199a8c75bf6b9114ffbedf073971d1524f7bf8
parentc7356c795b3c8cec2453061299e85cb315a9a6a7 (diff)
parent1dcb45a79ccdf9631056b7200c941af6bfde1e82 (diff)
downloadredot-engine-a42f95f9e26fcd8be952b7db5cd85961114fe335.tar.gz
Merge pull request #80689 from AThousandShips/gizmo_fix
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();