Explorar o código

JSM: Update modules.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
064df7c22c
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  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 );