Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/bone_gizmo_node.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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())
animation.transform_track_insert_key(i,animation_node.current_animation_position,bone_tr.origin,rot,bone_tr.basis.get_scale())