浏览代码

ColladaLoader2: Fixed undefined texture offset and repeat values

Mugen87 8 年之前
父节点
当前提交
d122152da2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/loaders/ColladaLoader2.js

+ 2 - 2
examples/js/loaders/ColladaLoader2.js

@@ -587,8 +587,8 @@ THREE.ColladaLoader.prototype = {
 						texture.wrapS = technique.wrapU ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
 						texture.wrapT = technique.wrapV ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
 
-						texture.offset.set( technique.offsetU, technique.offsetV );
-						texture.repeat.set( technique.repeatU, technique.repeatV );
+						texture.offset.set( technique.offsetU || 0, technique.offsetV || 0 );
+						texture.repeat.set( technique.repeatU || 1, technique.repeatV || 1 );
 
 					} else {