mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-04-26 17:44:59 +02:00
Fix an error, remove a now unneeded comment, and an apply call.
This commit is contained in:
parent
2217c1d4dc
commit
e0db0b0379
@ -114,15 +114,15 @@ func redraw():
|
|||||||
if _mdr.array.size() != ArrayMesh.ARRAY_MAX:
|
if _mdr.array.size() != ArrayMesh.ARRAY_MAX:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if !get_plugin():
|
||||||
|
return
|
||||||
|
|
||||||
var handles_material : SpatialMaterial = get_plugin().get_material("handles", self)
|
var handles_material : SpatialMaterial = get_plugin().get_material("handles", self)
|
||||||
var material = get_plugin().get_material("main", self)
|
var material = get_plugin().get_material("main", self)
|
||||||
|
|
||||||
_mesh_outline_generator.setup(_mdr)
|
_mesh_outline_generator.setup(_mdr)
|
||||||
add_lines(_mesh_outline_generator.lines, material, false)
|
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()
|
var vs : PoolVector3Array = PoolVector3Array()
|
||||||
|
|
||||||
for i in _selected_points:
|
for i in _selected_points:
|
||||||
@ -178,7 +178,6 @@ func forward_spatial_gui_input(index, camera, event):
|
|||||||
else:
|
else:
|
||||||
_selected_points.resize(0)
|
_selected_points.resize(0)
|
||||||
|
|
||||||
apply()
|
|
||||||
redraw()
|
redraw()
|
||||||
else:
|
else:
|
||||||
is_dragging = false
|
is_dragging = false
|
||||||
|
Loading…
Reference in New Issue
Block a user