From ecee746215f59688bb57e9f23c7eed2bb35d48b2 Mon Sep 17 00:00:00 2001 From: "Silc Lizard (Tokage) Renew" <61938263+TokageItLab@users.noreply.github.com> Date: Sun, 4 Jan 2026 08:40:46 +0900 Subject: [PATCH] Hide animation library properties in inspector --- scene/animation/animation_mixer.cpp | 2 +- scene/animation/animation_tree.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp index c54e21b9f52..25c86e4275f 100644 --- a/scene/animation/animation_mixer.cpp +++ b/scene/animation/animation_mixer.cpp @@ -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 *p_list) const { diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index b1ba39e9782..53525034b67 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -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 {