Skip to content

Commit

Permalink
Merge pull request #85575 from TokageItLab/Make-unstore-library
Browse files Browse the repository at this point in the history
Make unstore AnimationLibrary if AnimationTree is assigned AnimationPlayer
  • Loading branch information
YuriSizov committed Dec 16, 2023
2 parents 1e86ce0 + c380b12 commit 3fef891
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/animation/animation_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 3fef891

Please sign in to comment.