소스 검색

Support texture name in GLTFLoader

Takahiro 8 년 전
부모
커밋
9dbb37e234
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      examples/js/loaders/GLTFLoader.js

+ 2 - 0
examples/js/loaders/GLTFLoader.js

@@ -1070,6 +1070,8 @@ THREE.GLTFLoader = ( function () {
 
 							_texture.flipY = false;
 
+							if ( texture.name !== undefined ) _texture.name = texture.name;
+
 							if ( texture.sampler ) {
 
 								var sampler = json.samplers[ texture.sampler ];