Skip to content

Commit

Permalink
Remove target static because it is confusing.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Dec 9, 2024
1 parent ef0a93a commit 1a32ce3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions modules/many_bone_ik/src/many_bone_ik_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ void ManyBoneIK3D::_get_property_list(List<PropertyInfo> *p_list) const {
p_list->push_back(effector_name);
p_list->push_back(
PropertyInfo(Variant::NODE_PATH, "pins/" + itos(pin_i) + "/target_node", PROPERTY_HINT_NODE_PATH_VALID_TYPES, "Node3D", pin_usage));
p_list->push_back(
PropertyInfo(Variant::BOOL, "pins/" + itos(pin_i) + "/target_static", PROPERTY_HINT_NONE, "", pin_usage));
p_list->push_back(
PropertyInfo(Variant::FLOAT, "pins/" + itos(pin_i) + "/motion_propagation_factor", PROPERTY_HINT_RANGE, "0,1,0.1,or_greater", pin_usage));
p_list->push_back(
Expand Down Expand Up @@ -261,9 +259,6 @@ bool ManyBoneIK3D::_get(const StringName &p_name, Variant &r_ret) const {
} else if (what == "target_node") {
r_ret = effector_template->get_target_node();
return true;
} else if (what == "target_static") {
r_ret = effector_template->get_target_node().is_empty();
return true;
} else if (what == "motion_propagation_factor") {
r_ret = get_pin_motion_propagation_factor(index);
return true;
Expand Down Expand Up @@ -337,11 +332,6 @@ bool ManyBoneIK3D::_set(const StringName &p_name, const Variant &p_value) {
} else if (what == "target_node") {
set_pin_target_node_path(index, p_value);
return true;
} else if (what == "target_static") {
if (p_value) {
set_pin_target_node_path(index, NodePath());
}
return true;
} else if (what == "motion_propagation_factor") {
set_pin_motion_propagation_factor(index, p_value);
return true;
Expand Down

0 comments on commit 1a32ce3

Please sign in to comment.