Explorar el Código

fix unique node

sunag hace 8 años
padre
commit
52836bac07
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      examples/js/nodes/TempNode.js

+ 6 - 0
examples/js/nodes/TempNode.js

@@ -49,6 +49,12 @@ THREE.TempNode.prototype.build = function( builder, output, uuid, ns ) {
 
 
 			return THREE.GLNode.prototype.build.call( this, builder, output, uuid );
 			return THREE.GLNode.prototype.build.call( this, builder, output, uuid );
 
 
+		} else if ( isUnique ) {
+
+			data.name = data.name || THREE.GLNode.prototype.build.call( this, builder, output, uuid )
+
+			return data.name;
+
 		} else if ( ! builder.optimize || data.deps == 1 ) {
 		} else if ( ! builder.optimize || data.deps == 1 ) {
 
 
 			return THREE.GLNode.prototype.build.call( this, builder, output, uuid );
 			return THREE.GLNode.prototype.build.call( this, builder, output, uuid );