Browse Source

Improve implementation accordingly to PR reviews

Signed-off-by: Riccardo Padovani <[email protected]>
Riccardo Padovani 6 years ago
parent
commit
233aa3edf3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/loaders/GLTFLoader.js

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

@@ -1595,11 +1595,11 @@ THREE.GLTFLoader = ( function () {
 
 	function createMultiPassGeometryKey( geometry, primitives ) {
 
-		var key = createPrimitiveKey( geometry );
+		var key = geometry.uuid;
 
 		for ( var i = 0, il = primitives.length; i < il; i ++ ) {
 
-			key += i + primitives[ i ].uuid;
+			key += i + createPrimitiveKey( primitives[ i ].uuid );
 
 		}