mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Check whether the current mesh data instance is still ok, and unset if it gets freed in mdr ed's plugin. This can happen in the editor while messing around with scenes.
This commit is contained in:
parent
19f4e9216e
commit
c31098cad8
@ -143,6 +143,9 @@ func get_mdr() -> MeshDataResource:
|
||||
# return false
|
||||
|
||||
func forward_spatial_gui_input(index, camera, event):
|
||||
if (!is_instance_valid(current_mesh_data_instance)):
|
||||
current_mesh_data_instance = null
|
||||
|
||||
if current_mesh_data_instance && current_mesh_data_instance.gizmo:
|
||||
if current_mesh_data_instance.gizmo.forward_spatial_gui_input(index, camera, event):
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user