|
@@ -3,11 +3,11 @@
|
|
* @author sunag / http://www.sunag.com.br/
|
|
* @author sunag / http://www.sunag.com.br/
|
|
*/
|
|
*/
|
|
|
|
|
|
-import { GLNode } from './GLNode.js';
|
|
|
|
|
|
+import { Node } from './Node.js';
|
|
|
|
|
|
function TempNode( type, params ) {
|
|
function TempNode( type, params ) {
|
|
|
|
|
|
- GLNode.call( this, type );
|
|
|
|
|
|
+ Node.call( this, type );
|
|
|
|
|
|
params = params || {};
|
|
params = params || {};
|
|
|
|
|
|
@@ -16,7 +16,7 @@ function TempNode( type, params ) {
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
-TempNode.prototype = Object.create( GLNode.prototype );
|
|
|
|
|
|
+TempNode.prototype = Object.create( Node.prototype );
|
|
TempNode.prototype.constructor = TempNode;
|
|
TempNode.prototype.constructor = TempNode;
|
|
|
|
|
|
TempNode.prototype.build = function ( builder, output, uuid, ns ) {
|
|
TempNode.prototype.build = function ( builder, output, uuid, ns ) {
|
|
@@ -47,17 +47,17 @@ TempNode.prototype.build = function ( builder, output, uuid, ns ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- return GLNode.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
+ return Node.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
} else if ( isUnique ) {
|
|
} else if ( isUnique ) {
|
|
|
|
|
|
- data.name = data.name || GLNode.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
+ data.name = data.name || Node.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
return data.name;
|
|
return data.name;
|
|
|
|
|
|
} else if ( ! builder.optimize || data.deps == 1 ) {
|
|
} else if ( ! builder.optimize || data.deps == 1 ) {
|
|
|
|
|
|
- return GLNode.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
+ return Node.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -84,7 +84,7 @@ TempNode.prototype.build = function ( builder, output, uuid, ns ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- return GLNode.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
+ return Node.prototype.build.call( this, builder, output, uuid );
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|