summaryrefslogtreecommitdiffstats
path: root/scene/resources/skeleton_profile.h
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-26 17:09:09 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-30 20:57:55 +0100
commit334449df702d911d5f220497f74e321e56492504 (patch)
treecff892d471ca96cf1da65a2a7f38703778487b23 /scene/resources/skeleton_profile.h
parent86415f02452dbf6de85325d3321fd7ec7fba9e94 (diff)
downloadredot-engine-334449df702d911d5f220497f74e321e56492504.tar.gz
[Animation] Expose `SkeletonProfile.set/is_required`
Diffstat (limited to 'scene/resources/skeleton_profile.h')
-rw-r--r--scene/resources/skeleton_profile.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/scene/resources/skeleton_profile.h b/scene/resources/skeleton_profile.h
index 143f495c61..b5a3bce940 100644
--- a/scene/resources/skeleton_profile.h
+++ b/scene/resources/skeleton_profile.h
@@ -61,7 +61,7 @@ protected:
Transform3D reference_pose;
Vector2 handle_offset;
StringName group;
- bool require = false;
+ bool required = false;
};
StringName root_bone;
@@ -104,22 +104,22 @@ public:
void set_bone_parent(int p_bone_idx, const StringName &p_bone_parent);
TailDirection get_tail_direction(int p_bone_idx) const;
- void set_tail_direction(int p_bone_idx, const TailDirection p_tail_direction);
+ void set_tail_direction(int p_bone_idx, TailDirection p_tail_direction);
StringName get_bone_tail(int p_bone_idx) const;
void set_bone_tail(int p_bone_idx, const StringName &p_bone_tail);
Transform3D get_reference_pose(int p_bone_idx) const;
- void set_reference_pose(int p_bone_idx, const Transform3D p_reference_pose);
+ void set_reference_pose(int p_bone_idx, const Transform3D &p_reference_pose);
Vector2 get_handle_offset(int p_bone_idx) const;
- void set_handle_offset(int p_bone_idx, const Vector2 p_handle_offset);
+ void set_handle_offset(int p_bone_idx, const Vector2 &p_handle_offset);
StringName get_group(int p_bone_idx) const;
void set_group(int p_bone_idx, const StringName &p_group);
- bool is_require(int p_bone_idx) const;
- void set_require(int p_bone_idx, const bool p_require);
+ bool is_required(int p_bone_idx) const;
+ void set_required(int p_bone_idx, bool p_required);
bool has_bone(const StringName &p_bone_name);