mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Fix visual server array len == 0 errors.
This commit is contained in:
parent
e0db0b0379
commit
2bffe4dc68
@ -123,6 +123,7 @@ func redraw():
|
|||||||
_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)
|
||||||
|
|
||||||
|
if _selected_points.size() > 0:
|
||||||
var vs : PoolVector3Array = PoolVector3Array()
|
var vs : PoolVector3Array = PoolVector3Array()
|
||||||
|
|
||||||
for i in _selected_points:
|
for i in _selected_points:
|
||||||
@ -176,6 +177,9 @@ func forward_spatial_gui_input(index, camera, event):
|
|||||||
apply()
|
apply()
|
||||||
redraw()
|
redraw()
|
||||||
else:
|
else:
|
||||||
|
if _selected_points.size() == 0:
|
||||||
|
return false
|
||||||
|
|
||||||
_selected_points.resize(0)
|
_selected_points.resize(0)
|
||||||
|
|
||||||
redraw()
|
redraw()
|
||||||
|
Loading…
Reference in New Issue
Block a user