Skip to content

Commit

Permalink
Trim code.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Dec 9, 2024
1 parent eed98e9 commit d41e1ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions modules/many_bone_ik/src/many_bone_ik_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,22 +991,6 @@ int32_t ManyBoneIK3D::find_pin(String p_string) const {
return -1;
}

bool ManyBoneIK3D::get_pin_target_fixed(int32_t p_effector_index) {
ERR_FAIL_INDEX_V(p_effector_index, pins.size(), false);
Ref<IKEffectorTemplate3D> effector_template = pins[p_effector_index];
return get_pin_node_path(p_effector_index).is_empty();
}

void ManyBoneIK3D::set_pin_target_fixed(int32_t p_effector_index, bool p_force_ignore) {
ERR_FAIL_INDEX(p_effector_index, pins.size());
if (!p_force_ignore) {
return;
}
Ref<IKEffectorTemplate3D> effector_template = pins[p_effector_index];
effector_template->set_target_node(NodePath());
set_dirty();
}

void ManyBoneIK3D::_bone_list_changed() {
Skeleton3D *skeleton = get_skeleton();
Vector<int32_t> roots = skeleton->get_parentless_bones();
Expand Down
2 changes: 0 additions & 2 deletions modules/many_bone_ik/src/many_bone_ik_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ class ManyBoneIK3D : public SkeletonModifier3D {
void _skeleton_changed(Skeleton3D *p_old, Skeleton3D *p_new) override;

public:
void set_pin_target_fixed(int32_t p_effector_index, bool p_force_ignore);
bool get_pin_target_fixed(int32_t p_effector_index);
void set_state(Ref<ManyBoneIK3DState> p_state);
Ref<ManyBoneIK3DState> get_state() const;
void add_constraint();
Expand Down

0 comments on commit d41e1ba

Please sign in to comment.