From 6c02392f11d76c4551a918105c994db4c9d388ef Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 23 Jan 2022 22:05:28 +0100 Subject: [PATCH] Fix a typo and copy pase error. --- game/addons/mesh_data_resource_editor/MDIEd.gd | 2 +- game/addons/mesh_data_resource_editor/plugin.gd | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/game/addons/mesh_data_resource_editor/MDIEd.gd b/game/addons/mesh_data_resource_editor/MDIEd.gd index 7aa3deff..19763b33 100644 --- a/game/addons/mesh_data_resource_editor/MDIEd.gd +++ b/game/addons/mesh_data_resource_editor/MDIEd.gd @@ -214,7 +214,7 @@ func _on_uv_edit_pressed(): func on_pivot_average_toggled(on : bool): if on: - _plugin.set_spivot_averaged() + _plugin.set_pivot_averaged() func on_pivot_mdi_origin_toggled(on : bool): if on: diff --git a/game/addons/mesh_data_resource_editor/plugin.gd b/game/addons/mesh_data_resource_editor/plugin.gd index 6ad32303..28ce3a2e 100644 --- a/game/addons/mesh_data_resource_editor/plugin.gd +++ b/game/addons/mesh_data_resource_editor/plugin.gd @@ -233,14 +233,9 @@ func uv_unwrap() -> void: if current_mesh_data_instance && current_mesh_data_instance.gizmo: current_mesh_data_instance.gizmo.set_spivot_averaged() -func set_spivot_averaged(): +func set_pivot_averaged(): if current_mesh_data_instance && current_mesh_data_instance.gizmo: current_mesh_data_instance.gizmo.set_selection_mode_face() - - for g in active_gizmos: - if g.active: - g.set_spivot_averaged() - return func set_pivot_mdi_origin(): if current_mesh_data_instance && current_mesh_data_instance.gizmo: