浏览代码

Merge branch 'patch-3' of https://github.com/jayschwa/three.js into dev

# Conflicts:
#	docs/api/en/textures/Texture.html
Mr.doob 7 年之前
父节点
当前提交
2cf6e119c4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/textures/Texture.js

+ 3 - 1
src/textures/Texture.js

@@ -225,7 +225,7 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 
 	transformUv: function ( uv ) {
 
-		if ( this.mapping !== UVMapping ) return;
+		if ( this.mapping !== UVMapping ) return uv;
 
 		uv.applyMatrix3( this.matrix );
 
@@ -297,6 +297,8 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 
 		}
 
+		return uv;
+
 	}
 
 } );