Parcourir la source

Remove error messages

Juan Linietsky il y a 7 ans
Parent
commit
b76143bfde
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      core/resource.cpp
  2. 1 1
      editor/plugins/animation_blend_space_editor.cpp

+ 1 - 1
core/resource.cpp

@@ -287,7 +287,7 @@ uint32_t Resource::hash_edited_version() const {
 
 
 	for (List<PropertyInfo>::Element *E = plist.front(); E; E = E->next()) {
 	for (List<PropertyInfo>::Element *E = plist.front(); E; E = E->next()) {
 
 
-		if (E->get().type == Variant::OBJECT && E->get().hint == PROPERTY_HINT_RESOURCE_TYPE) {
+		if (E->get().usage & PROPERTY_USAGE_STORAGE && E->get().type == Variant::OBJECT && E->get().hint == PROPERTY_HINT_RESOURCE_TYPE) {
 			RES res = get(E->get().name);
 			RES res = get(E->get().name);
 			if (res.is_valid()) {
 			if (res.is_valid()) {
 				hash = hash_djb2_one_32(res->hash_edited_version(), hash);
 				hash = hash_djb2_one_32(res->hash_edited_version(), hash);

+ 1 - 1
editor/plugins/animation_blend_space_editor.cpp

@@ -243,7 +243,7 @@ void AnimationNodeBlendSpaceEditor::_blend_space_gui_input(const Ref<InputEvent>
 void AnimationNodeBlendSpaceEditor::_add_menu_type(int p_index) {
 void AnimationNodeBlendSpaceEditor::_add_menu_type(int p_index) {
 
 
 	String type = menu->get_item_metadata(p_index);
 	String type = menu->get_item_metadata(p_index);
-	print_line("type: " + type);
+
 	Object *obj = ClassDB::instance(type);
 	Object *obj = ClassDB::instance(type);
 	ERR_FAIL_COND(!obj);
 	ERR_FAIL_COND(!obj);
 	AnimationNode *an = Object::cast_to<AnimationNode>(obj);
 	AnimationNode *an = Object::cast_to<AnimationNode>(obj);