1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Remove editor code in PhysicalBone3D

_set_gizmo_move_joint is only used in PhysicalBone3DEditor, so the
editor plugin call can be done directly there.
This commit is contained in:
PouleyKetchoupp
2021-10-01 08:02:38 -07:00
parent 77721b35ba
commit ca30b70943
3 changed files with 3 additions and 10 deletions

View File

@@ -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();
}
}