From e0db0b0379397d9a61aa524922015be1667bcaba Mon Sep 17 00:00:00 2001 From: Relintai <relintai@protonmail.com> Date: Thu, 30 Dec 2021 01:14:05 +0100 Subject: [PATCH] Fix an error, remove a now unneeded comment, and an apply call. --- game/addons/mesh_data_resource_editor/MIDGizmo.gd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/game/addons/mesh_data_resource_editor/MIDGizmo.gd b/game/addons/mesh_data_resource_editor/MIDGizmo.gd index 398f7f97..fa77a459 100644 --- a/game/addons/mesh_data_resource_editor/MIDGizmo.gd +++ b/game/addons/mesh_data_resource_editor/MIDGizmo.gd @@ -114,15 +114,15 @@ func redraw(): if _mdr.array.size() != ArrayMesh.ARRAY_MAX: return + if !get_plugin(): + return + var handles_material : SpatialMaterial = get_plugin().get_material("handles", self) var material = get_plugin().get_material("main", self) _mesh_outline_generator.setup(_mdr) add_lines(_mesh_outline_generator.lines, material, false) - #displace selected handle verts too on drag, so this code just works. - #draw handles though instead ov vertices - var vs : PoolVector3Array = PoolVector3Array() for i in _selected_points: @@ -178,7 +178,6 @@ func forward_spatial_gui_input(index, camera, event): else: _selected_points.resize(0) - apply() redraw() else: is_dragging = false