浏览代码

Make unstore AnimationLibrary if AnimationTree is assigned Player

Silc Lizard (Tokage) Renew 1 年之前
父节点
当前提交
c380b1296a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      scene/animation/animation_tree.cpp

+ 3 - 0
scene/animation/animation_tree.cpp

@@ -799,6 +799,9 @@ void AnimationTree::_validate_property(PropertyInfo &p_property) const {
 		if (p_property.name == "root_node" || p_property.name.begins_with("libraries")) {
 		if (p_property.name == "root_node" || p_property.name.begins_with("libraries")) {
 			p_property.usage |= PROPERTY_USAGE_READ_ONLY;
 			p_property.usage |= PROPERTY_USAGE_READ_ONLY;
 		}
 		}
+		if (p_property.name.begins_with("libraries")) {
+			p_property.usage &= ~PROPERTY_USAGE_STORAGE;
+		}
 	}
 	}
 }
 }