diff options
author | K. S. Ernest (iFIre) Lee <ernest.lee@chibifire.com> | 2019-09-26 04:06:47 -0700 |
---|---|---|
committer | K. S. Ernest (iFIre) Lee <ernest.lee@chibifire.com> | 2019-09-26 04:06:47 -0700 |
commit | 0b48f53905c1c9404764787aabc2527d16341dd0 (patch) | |
tree | ac2bd0fdd9fc29e6b8e1468aed74f91b55e54f39 /scene/3d/skeleton.h | |
parent | 04032a94459ebb6a65930e4b37778e3e82323a19 (diff) |
Restore bone_custom_pose in skeletons
Diffstat (limited to 'scene/3d/skeleton.h')
-rw-r--r-- | scene/3d/skeleton.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/3d/skeleton.h b/scene/3d/skeleton.h index f20c550055..824d9567fa 100644 --- a/scene/3d/skeleton.h +++ b/scene/3d/skeleton.h @@ -87,6 +87,9 @@ private: Transform pose; Transform pose_global; + bool custom_pose_enable; + Transform custom_pose; + float global_pose_override_amount; bool global_pose_override_reset; Transform global_pose_override; @@ -102,6 +105,7 @@ private: parent = -1; enabled = true; disable_rest = false; + custom_pose_enable = false; global_pose_override_amount = 0; global_pose_override_reset = false; #ifndef _3D_DISABLED @@ -184,6 +188,9 @@ public: void set_bone_pose(int p_bone, const Transform &p_pose); Transform get_bone_pose(int p_bone) const; + void set_bone_custom_pose(int p_bone, const Transform &p_custom_pose); + Transform get_bone_custom_pose(int p_bone) const; + void localize_rests(); // used for loaders and tools int get_process_order(int p_idx); |