Преглед на файлове

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();
 		}
 	}