mirror of https://github.com/godotengine/godot
Hide animation library properties in inspector
This commit is contained in:
parent
b8e4523224
commit
ecee746215
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue