Преглед изворни кода

ObjectLoader.parse: parseTextures missing `generateMipmaps` (#25109)

* ObjectLoader.parse: parseTextures missing `generateMipmaps`

Related to #25108

* Update ObjectLoader.js

Co-authored-by: Michael Herzog <[email protected]>
Benjamin пре 2 година
родитељ
комит
51122bf23c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/loaders/ObjectLoader.js

+ 1 - 0
src/loaders/ObjectLoader.js

@@ -661,6 +661,7 @@ class ObjectLoader extends Loader {
 
 				if ( data.flipY !== undefined ) texture.flipY = data.flipY;
 
+				if ( data.generateMipmaps !== undefined ) texture.generateMipmaps = data.generateMipmaps;
 				if ( data.premultiplyAlpha !== undefined ) texture.premultiplyAlpha = data.premultiplyAlpha;
 				if ( data.unpackAlignment !== undefined ) texture.unpackAlignment = data.unpackAlignment;