浏览代码

JSM: Update modules.

Mugen87 5 年之前
父节点
当前提交
064df7c22c
共有 1 个文件被更改,包括 1 次插入5 次删除
  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 );