mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-22 02:17:18 +01:00
Use the forward_spatial_gui_input variant which has the index parameter in mesh data resource editor by default.
This commit is contained in:
parent
eee70dac69
commit
ed3c6eb19d
@ -115,17 +115,17 @@ func set_axis_z(on : bool) -> void:
|
|||||||
func uv_unwrap() -> void:
|
func uv_unwrap() -> void:
|
||||||
if current_mesh_data_instance && current_mesh_data_instance.mesh_data:
|
if current_mesh_data_instance && current_mesh_data_instance.mesh_data:
|
||||||
current_mesh_data_instance.mesh_data.uv_unwrap()
|
current_mesh_data_instance.mesh_data.uv_unwrap()
|
||||||
|
#
|
||||||
func forward_spatial_gui_input(camera, event):
|
#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):
|
|
||||||
# for g in active_gizmos:
|
# 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 true
|
||||||
#
|
#
|
||||||
# return false
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user