Use the forward_spatial_gui_input variant which has the index parameter in mesh data resource editor by default.

This commit is contained in:
Relintai 2021-09-26 20:04:42 +02:00
parent eee70dac69
commit ed3c6eb19d

View File

@ -115,17 +115,17 @@ func set_axis_z(on : bool) -> void:
func uv_unwrap() -> void:
if current_mesh_data_instance && current_mesh_data_instance.mesh_data:
current_mesh_data_instance.mesh_data.uv_unwrap()
func forward_spatial_gui_input(camera, event):
for g in active_gizmos:
if g.forward_spatial_gui_input(0, camera, event):
return true
return false
#func forward_spatial_gui_input(index, camera, event):
#
#func forward_spatial_gui_input(camera, event):
# for g in active_gizmos:
# if g.forward_spatial_gui_input(index, camera, event):
# if g.forward_spatial_gui_input(0, camera, event):
# return true
#
# return false
func forward_spatial_gui_input(index, camera, event):
for g in active_gizmos:
if g.forward_spatial_gui_input(index, camera, event):
return true
return false