We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81fd6c commit 0771746Copy full SHA for 0771746
scene/3d/modifier_bone_target_3d.cpp
@@ -72,6 +72,19 @@ void ModifierBoneTarget3D::_validate_property(PropertyInfo &p_property) const {
72
if (p_property.name == "influence") {
73
p_property.usage = PROPERTY_USAGE_READ_ONLY;
74
}
75
+ if (!Engine::get_singleton()->is_editor_hint()) {
76
+ return;
77
+ }
78
+ if (p_property.name == "bone_name") {
79
+ Skeleton3D *skeleton = get_skeleton();
80
+ if (skeleton) {
81
+ p_property.hint = PROPERTY_HINT_ENUM;
82
+ p_property.hint_string = skeleton->get_concatenated_bone_names();
83
+ } else {
84
+ p_property.hint = PROPERTY_HINT_NONE;
85
+ p_property.hint_string = "";
86
87
88
89
90
void ModifierBoneTarget3D::_bind_methods() {
0 commit comments