ソースを参照

fix cloneMaterial

but0n 6 年 前
コミット
dcb81efbe9
1 ファイル変更6 行追加0 行削除
  1. 6 0
      examples/js/loaders/GLTFLoader.js

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

@@ -845,6 +845,12 @@ THREE.GLTFLoader = ( function () {
 
 				}
 
+				if ( source.color != undefined ) {
+
+					target.color = source.color.clone();
+
+				}
+
 				return target;
 
 			},