Selaa lähdekoodia

Merge pull request #17892 from Mugen87/dev33

JSM: Update modules.
Michael Herzog 5 vuotta sitten
vanhempi
commit
47a438f14f
1 muutettua tiedostoa jossa 1 lisäystä ja 5 poistoa
  1. 1 5
      examples/jsm/loaders/VRMLLoader.js

+ 1 - 5
examples/jsm/loaders/VRMLLoader.js

@@ -1086,11 +1086,7 @@ var VRMLLoader = ( function () {
 							var textureNode = fieldValues[ 0 ];
 							if ( textureNode !== null ) {
 
-								if ( textureNode.name === 'ImageTexture' ) {
-
-									material.map = getNode( textureNode );
-
-								} else if ( textureNode.name === 'PixelTexture' ) {
+								if ( textureNode.name === 'ImageTexture' || textureNode.name === 'PixelTexture' ) {
 
 									material.map = getNode( textureNode );