diff --git a/addons/bone_gizmo_node.gd b/addons/bone_gizmo_node.gd index 2617a62..3c2fece 100644 --- a/addons/bone_gizmo_node.gd +++ b/addons/bone_gizmo_node.gd @@ -4,7 +4,7 @@ extends Spatial var run = false #All paths are must be relative to the node (BoneGizmo) -export(String) var skeleton_path = "../Armature" +export(NodePath) var skeleton_path export(String) var edit_bone = "" export(String) var animation_path = "../AnimationPlayer" @@ -37,4 +37,4 @@ func insert_key(): #This will override all the bone poses in the track with the for i in range(skeleton_node.get_bone_count()): var bone_tr = skeleton_node.get_bone_pose(i) var rot = Quat(bone_tr.basis) - animation.transform_track_insert_key(i,animation_node.current_animation_position,bone_tr.origin,rot,bone_tr.basis.get_scale()) \ No newline at end of file + animation.transform_track_insert_key(i,animation_node.current_animation_position,bone_tr.origin,rot,bone_tr.basis.get_scale())