Merge pull request #85575 from TokageItLab/Make-unstore-library
Make unstore AnimationLibrary if AnimationTree is assigned AnimationPlayer
This commit is contained in:
commit
3fef8910c7
1 changed files with 3 additions and 0 deletions
|
|
@ -801,6 +801,9 @@ void AnimationTree::_validate_property(PropertyInfo &p_property) const {
|
|||
if (p_property.name == "root_node" || p_property.name.begins_with("libraries")) {
|
||||
p_property.usage |= PROPERTY_USAGE_READ_ONLY;
|
||||
}
|
||||
if (p_property.name.begins_with("libraries")) {
|
||||
p_property.usage &= ~PROPERTY_USAGE_STORAGE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue