mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
22 lines
408 B
GDScript
22 lines
408 B
GDScript
tool
|
|
extends EditorSpatialGizmoPlugin
|
|
|
|
const MDIGizmo = preload("res://addons/mesh_data_resource_editor/MIDGizmo.gd")
|
|
|
|
func _init():
|
|
create_material("main", Color(1, 0, 0))
|
|
create_handle_material("handles")
|
|
|
|
func get_name():
|
|
return "MDIGizmo"
|
|
|
|
func get_priority():
|
|
return 100
|
|
|
|
func create_gizmo(spatial):
|
|
if spatial is MeshDataInstance:
|
|
print("new gizmo")
|
|
return MDIGizmo.new()
|
|
else:
|
|
return null
|