diff options
| author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-10-01 08:02:38 -0700 |
|---|---|---|
| committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-10-01 08:02:38 -0700 |
| commit | ca30b70943b1d2c19c10e901786edb8b095f7834 (patch) | |
| tree | 9a6aa312895bd7ac1cf2281444537e2f9c31a64e /editor/plugins | |
| parent | 77721b35ba21f2e7e8bb42cf415fccb018517843 (diff) | |
Remove editor code in PhysicalBone3D
_set_gizmo_move_joint is only used in PhysicalBone3DEditor, so the
editor plugin call can be done directly there.
Diffstat (limited to 'editor/plugins')
| -rw-r--r-- | editor/plugins/physical_bone_3d_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/physical_bone_3d_editor_plugin.cpp b/editor/plugins/physical_bone_3d_editor_plugin.cpp index f92f50f826..b1e104e680 100644 --- a/editor/plugins/physical_bone_3d_editor_plugin.cpp +++ b/editor/plugins/physical_bone_3d_editor_plugin.cpp @@ -43,6 +43,7 @@ void PhysicalBone3DEditor::_on_toggle_button_transform_joint(bool p_is_pressed) void PhysicalBone3DEditor::_set_move_joint() { if (selected) { selected->_set_gizmo_move_joint(button_transform_joint->is_pressed()); + Node3DEditor::get_singleton()->update_transform_gizmo(); } } |