Make unstore AnimationLibrary if AnimationTree is assigned Player

(cherry picked from commit c380b1296a)
This commit is contained in:
Silc Lizard (Tokage) Renew 2023-12-01 04:50:58 +09:00 committed by Yuri Sizov
parent c285b726bb
commit 19bb93513a
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}
}