소스 검색

Merge pull request #20721 from willnationsdev/fix-image-loader

ResourceFormatLoaderImage::get_resource_type now uses file path
Thomas Herzog 7 년 전
부모
커밋
a3bd9c27a3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/io/image_loader.cpp

+ 1 - 1
core/io/image_loader.cpp

@@ -185,5 +185,5 @@ bool ResourceFormatLoaderImage::handles_type(const String &p_type) const {
 
 
 String ResourceFormatLoaderImage::get_resource_type(const String &p_path) const {
 String ResourceFormatLoaderImage::get_resource_type(const String &p_path) const {
 
 
-	return "Image";
+	return p_path.get_extension().to_lower() == "image" ? "Image" : String();
 }
 }