Browse Source

fix cloneMaterial

but0n 6 years ago
parent
commit
dcb81efbe9
1 changed files with 6 additions and 0 deletions
  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;
 
 			},