Merge pull request #114582 from TokageItLab/hide-animlib-inspector
Hide animation library properties in inspector
This commit is contained in:
@@ -123,7 +123,7 @@ bool AnimationMixer::_get(const StringName &p_name, Variant &r_ret) const {
|
||||
}
|
||||
|
||||
uint32_t AnimationMixer::_get_libraries_property_usage() const {
|
||||
return PROPERTY_USAGE_DEFAULT;
|
||||
return PROPERTY_USAGE_STORAGE;
|
||||
}
|
||||
|
||||
void AnimationMixer::_get_property_list(List<PropertyInfo> *p_list) const {
|
||||
|
||||
@@ -902,9 +902,9 @@ void AnimationTree::_setup_animation_player() {
|
||||
// `libraries` is a dynamic property, so we can't use `_validate_property` to change it.
|
||||
uint32_t AnimationTree::_get_libraries_property_usage() const {
|
||||
if (!animation_player.is_empty()) {
|
||||
return PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_READ_ONLY;
|
||||
return PROPERTY_USAGE_READ_ONLY;
|
||||
}
|
||||
return PROPERTY_USAGE_DEFAULT;
|
||||
return PROPERTY_USAGE_STORAGE;
|
||||
}
|
||||
|
||||
void AnimationTree::_validate_property(PropertyInfo &p_property) const {
|
||||
|
||||
Reference in New Issue
Block a user