mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
23 lines
426 B
GDScript
23 lines
426 B
GDScript
tool
|
|
extends EditorSpatialGizmoPlugin
|
|
|
|
const BoneGizmo = preload("res://addons/gdpose/bonegizmo.gd")
|
|
|
|
func get_name():
|
|
return "BoneGizmo"
|
|
|
|
func get_priority():
|
|
return 100
|
|
|
|
func create_gizmo(spatial):
|
|
if spatial is Skeleton:
|
|
return BoneGizmo.new()
|
|
else:
|
|
return null
|
|
|
|
func _init():
|
|
create_material("skeleton", Color(0.6, 0.6, 0.0))
|
|
create_material("selected", Color(1.0, 1.0, 0.0))
|
|
create_handle_material("handles")
|
|
|