mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Handle more edge cases in recalculate_handle_points.
This commit is contained in:
parent
2bffe4dc68
commit
bed06568e4
@ -285,7 +285,9 @@ func recalculate_handle_points() -> void:
|
||||
|
||||
var mdr_arr : Array = _mdr.array
|
||||
|
||||
if mdr_arr.size() != ArrayMesh.ARRAY_MAX:
|
||||
if mdr_arr.size() != ArrayMesh.ARRAY_MAX || mdr_arr[ArrayMesh.ARRAY_VERTEX] == null || mdr_arr[ArrayMesh.ARRAY_VERTEX].size() == 0:
|
||||
_handle_points.resize(0)
|
||||
_handle_to_vertex_map.resize(0)
|
||||
return
|
||||
|
||||
var arr : Array = Array()
|
||||
|
Loading…
Reference in New Issue
Block a user