瀏覽代碼

Make unstore AnimationLibrary if AnimationTree is assigned Player

(cherry picked from commit c380b1296a665979a2a200b13b3282e45a83d8c9)
Silc Lizard (Tokage) Renew 1 年之前
父節點
當前提交
19bb93513a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      scene/animation/animation_tree.cpp

+ 3 - 0
scene/animation/animation_tree.cpp

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