mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #109905 from TokageItLab/mod-target-name
Add lacked bone name suggestions in ModifierBoneTarget3D
This commit is contained in:
commit
aa6ffa25c3
1 changed files with 13 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue