Browse Source

Merge pull request #80107 from Spycemyster/reimport-path-message

Add path to missing import texture metadata to error message
Yuri Sizov 2 năm trước cách đây
mục cha
commit
2bd1d8ac28
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/import/resource_importer_texture.cpp

+ 1 - 1
editor/import/resource_importer_texture.cpp

@@ -418,7 +418,7 @@ void ResourceImporterTexture::_save_editor_meta(const Dictionary &p_metadata, co
 
 Dictionary ResourceImporterTexture::_load_editor_meta(const String &p_path) const {
 	Ref<FileAccess> f = FileAccess::open(p_path, FileAccess::READ);
-	ERR_FAIL_COND_V_MSG(f.is_null(), Dictionary(), "Missing required editor-specific import metadata for a texture; please, reimport.");
+	ERR_FAIL_COND_V_MSG(f.is_null(), Dictionary(), vformat("Missing required editor-specific import metadata for a texture (please reimport it using the 'Import' tab): '%s'", p_path));
 
 	return f->get_var();
 }