|
@@ -72,6 +72,19 @@ void ModifierBoneTarget3D::_validate_property(PropertyInfo &p_property) const {
|
|
|
if (p_property.name == "influence") {
|
|
|
p_property.usage = PROPERTY_USAGE_READ_ONLY;
|
|
|
}
|
|
|
+ if (!Engine::get_singleton()->is_editor_hint()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (p_property.name == "bone_name") {
|
|
|
+ Skeleton3D *skeleton = get_skeleton();
|
|
|
+ if (skeleton) {
|
|
|
+ p_property.hint = PROPERTY_HINT_ENUM;
|
|
|
+ p_property.hint_string = skeleton->get_concatenated_bone_names();
|
|
|
+ } else {
|
|
|
+ p_property.hint = PROPERTY_HINT_NONE;
|
|
|
+ p_property.hint_string = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void ModifierBoneTarget3D::_bind_methods() {
|