You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix gizmo for BoxShape3D
This commit is contained in:
@@ -301,7 +301,7 @@ void CollisionShape3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo
|
|||||||
EditorUndoRedoManager *ur = EditorUndoRedoManager::get_singleton();
|
EditorUndoRedoManager *ur = EditorUndoRedoManager::get_singleton();
|
||||||
ur->create_action(TTR("Change Box Shape Size"));
|
ur->create_action(TTR("Change Box Shape Size"));
|
||||||
ur->add_do_method(ss.ptr(), "set_size", ss->get_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(ss.ptr(), "set_size", p_restore);
|
||||||
ur->add_undo_method(cs, "set_global_position", initial_transform.get_origin());
|
ur->add_undo_method(cs, "set_global_position", initial_transform.get_origin());
|
||||||
ur->commit_action();
|
ur->commit_action();
|
||||||
|
|||||||
Reference in New Issue
Block a user