浏览代码

Do not normalize normal map when disabled, fixes #20761

Juan Linietsky 6 年之前
父节点
当前提交
815557c812
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/import/resource_importer_texture.cpp

+ 1 - 1
editor/import/resource_importer_texture.cpp

@@ -415,7 +415,7 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String
 			image->resize(new_width, new_height, Image::INTERPOLATE_CUBIC);
 		}
 
-		if (normal) {
+		if (normal == 1) {
 			image->normalize();
 		}
 	}