Nodes: Fix missing return statement in copy functions
@@ -202,6 +202,8 @@ CameraNode.prototype.copy = function ( source ) {
}
+ return this;
+
};
CameraNode.prototype.toJSON = function ( meta ) {
@@ -34,6 +34,8 @@ ColorsNode.prototype.copy = function ( source ) {
this.index = source.index;
ColorsNode.prototype.toJSON = function ( meta ) {
@@ -40,6 +40,8 @@ LightNode.prototype.copy = function ( source ) {
this.scope = source.scope;
LightNode.prototype.toJSON = function ( meta ) {
@@ -84,6 +84,8 @@ NormalNode.prototype.copy = function ( source ) {
NormalNode.prototype.toJSON = function ( meta ) {
@@ -114,6 +114,8 @@ PositionNode.prototype.copy = function ( source ) {
PositionNode.prototype.toJSON = function ( meta ) {
@@ -43,6 +43,8 @@ ResolutionNode.prototype.copy = function ( source ) {
this.renderer = source.renderer;
ResolutionNode.prototype.toJSON = function ( meta ) {
@@ -43,6 +43,8 @@ ScreenUVNode.prototype.copy = function ( source ) {
this.resolution = source.resolution;
ScreenUVNode.prototype.toJSON = function ( meta ) {
@@ -36,6 +36,8 @@ UVNode.prototype.copy = function ( source ) {
UVNode.prototype.toJSON = function ( meta ) {
@@ -29,6 +29,8 @@ BlinnExponentToRoughnessNode.prototype.copy = function ( source ) {
this.blinnExponent = source.blinnExponent;
BlinnExponentToRoughnessNode.prototype.toJSON = function ( meta ) {
@@ -71,6 +71,8 @@ RoughnessToBlinnExponentNode.prototype.copy = function ( source ) {
this.texture = source.texture;
RoughnessToBlinnExponentNode.prototype.toJSON = function ( meta ) {
@@ -47,6 +47,8 @@ AttributeNode.prototype.copy = function ( source ) {
this.type = source.type;
AttributeNode.prototype.toJSON = function ( meta ) {
@@ -102,6 +102,8 @@ ConstNode.prototype.copy = function ( source ) {
this.parse( source.src, source.useDefine );
ConstNode.prototype.toJSON = function ( meta ) {
@@ -70,6 +70,8 @@ FunctionCallNode.prototype.copy = function ( source ) {
this.value = source.value;
FunctionCallNode.prototype.toJSON = function ( meta ) {
@@ -226,6 +226,8 @@ FunctionNode.prototype.copy = function ( source ) {
if ( source.type !== undefined ) this.type = source.type;
FunctionNode.prototype.toJSON = function ( meta ) {
@@ -38,6 +38,8 @@ InputNode.prototype.copy = function ( source ) {
if ( source.readonly !== undefined ) this.readonly = source.readonly;
InputNode.prototype.createJSONNode = function ( meta ) {
@@ -147,6 +147,8 @@ Node.prototype = {
if ( source.userData !== undefined ) this.userData = JSON.parse( JSON.stringify( source.userData ) );
},
createJSONNode: function ( meta ) {
@@ -43,6 +43,8 @@ VarNode.prototype.copy = function ( source ) {
VarNode.prototype.toJSON = function ( meta ) {
@@ -142,6 +142,8 @@ BlurNode.prototype.copy = function ( source ) {
this.blurX = source.blurX;
this.blurY = source.blurY;
BlurNode.prototype.toJSON = function ( meta ) {
@@ -113,6 +113,8 @@ ColorAdjustmentNode.prototype.copy = function ( source ) {
this.adjustment = source.adjustment;
this.method = source.method;
ColorAdjustmentNode.prototype.toJSON = function ( meta ) {
@@ -52,6 +52,8 @@ LuminanceNode.prototype.copy = function ( source ) {
this.rgb = source.rgb;
LuminanceNode.prototype.toJSON = function ( meta ) {
@@ -28,6 +28,8 @@ BoolNode.prototype.copy = function ( source ) {
BoolNode.prototype.toJSON = function ( meta ) {
@@ -33,6 +33,8 @@ ColorNode.prototype.copy = function ( source ) {
this.value.copy( source );
ColorNode.prototype.toJSON = function ( meta ) {
@@ -84,6 +84,8 @@ CubeTextureNode.prototype.copy = function ( source ) {
if ( source.bias ) this.bias = source.bias;
CubeTextureNode.prototype.toJSON = function ( meta ) {
@@ -28,6 +28,8 @@ FloatNode.prototype.copy = function ( source ) {
FloatNode.prototype.toJSON = function ( meta ) {
@@ -28,6 +28,8 @@ IntNode.prototype.copy = function ( source ) {
IntNode.prototype.toJSON = function ( meta ) {
@@ -51,6 +51,8 @@ Matrix3Node.prototype.copy = function ( source ) {
this.value.fromArray( source.elements );
Matrix3Node.prototype.toJSON = function ( meta ) {
@@ -50,6 +50,8 @@ Matrix4Node.prototype.copy = function ( source ) {
this.scope.value.fromArray( source.elements );
Matrix4Node.prototype.toJSON = function ( meta ) {
@@ -135,6 +135,8 @@ RTTNode.prototype.copy = function ( source ) {
this.saveTo = source.saveTo;
RTTNode.prototype.toJSON = function ( meta ) {
@@ -67,6 +67,8 @@ ReflectorNode.prototype.copy = function ( source ) {
this.scope.mirror = source.mirror;
ReflectorNode.prototype.toJSON = function ( meta ) {
@@ -89,6 +89,8 @@ TextureNode.prototype.copy = function ( source ) {
if ( source.project !== undefined ) this.project = source.project;
TextureNode.prototype.toJSON = function ( meta ) {
@@ -33,6 +33,8 @@ Vector2Node.prototype.copy = function ( source ) {
Vector2Node.prototype.toJSON = function ( meta ) {
@@ -33,6 +33,8 @@ Vector3Node.prototype.copy = function ( source ) {
Vector3Node.prototype.toJSON = function ( meta ) {
@@ -33,6 +33,8 @@ Vector4Node.prototype.copy = function ( source ) {
Vector4Node.prototype.toJSON = function ( meta ) {
@@ -144,6 +144,8 @@ NodeMaterial.prototype.copy = function ( source ) {
NodeMaterial.prototype.toJSON = function ( meta ) {
@@ -372,6 +372,8 @@ PhongNode.prototype.copy = function ( source ) {
if ( source.environment ) this.environment = source.environment;
if ( source.environmentAlpha ) this.environmentAlpha = source.environmentAlpha;
PhongNode.prototype.toJSON = function ( meta ) {
@@ -41,6 +41,8 @@ RawNode.prototype.copy = function ( source ) {
RawNode.prototype.toJSON = function ( meta ) {
@@ -202,6 +202,8 @@ SpriteNode.prototype.copy = function ( source ) {
if ( source.alpha ) this.alpha = source.alpha;
SpriteNode.prototype.toJSON = function ( meta ) {
@@ -459,6 +459,8 @@ StandardNode.prototype.copy = function ( source ) {
StandardNode.prototype.toJSON = function ( meta ) {
@@ -99,6 +99,8 @@ CondNode.prototype.copy = function ( source ) {
this.ifNode = source.ifNode;
this.elseNode = source.elseNode;
CondNode.prototype.toJSON = function ( meta ) {
@@ -243,6 +243,8 @@ MathNode.prototype.copy = function ( source ) {
this.c = source.c;
MathNode.prototype.toJSON = function ( meta ) {
@@ -63,6 +63,8 @@ OperatorNode.prototype.copy = function ( source ) {
this.b = source.b;
this.op = source.op;
OperatorNode.prototype.toJSON = function ( meta ) {
@@ -144,6 +144,8 @@ BumpMapNode.prototype.copy = function ( source ) {
this.scale = source.scale;
BumpMapNode.prototype.toJSON = function ( meta ) {
@@ -95,6 +95,8 @@ NormalMapNode.prototype.copy = function ( source ) {
NormalMapNode.prototype.toJSON = function ( meta ) {
@@ -52,6 +52,8 @@ NodePass.prototype.copy = function ( source ) {
this.input = source.input;
NodePass.prototype.toJSON = function ( meta ) {
@@ -97,6 +97,8 @@ NodePostProcessing.prototype = {
this.output = source.output;
toJSON: function ( meta ) {
@@ -54,6 +54,8 @@ CheckerNode.prototype.copy = function ( source ) {
this.uv = source.uv;
CheckerNode.prototype.toJSON = function ( meta ) {
@@ -48,6 +48,8 @@ NoiseNode.prototype.copy = function ( source ) {
NoiseNode.prototype.toJSON = function ( meta ) {
@@ -62,6 +62,8 @@ BypassNode.prototype.copy = function ( source ) {
this.code = source.code;
BypassNode.prototype.toJSON = function ( meta ) {
@@ -295,6 +295,8 @@ ColorSpaceNode.prototype.copy = function ( source ) {
ColorSpaceNode.prototype.toJSON = function ( meta ) {
@@ -78,6 +78,8 @@ JoinNode.prototype.copy = function ( source ) {
JoinNode.prototype.toJSON = function ( meta ) {
@@ -80,6 +80,8 @@ SwitchNode.prototype.copy = function ( source ) {
this.node = source.node;
this.components = source.components;
SwitchNode.prototype.toJSON = function ( meta ) {
@@ -75,6 +75,8 @@ TimerNode.prototype.copy = function ( source ) {
this.timeScale = source.timeScale;
TimerNode.prototype.toJSON = function ( meta ) {
@@ -44,6 +44,8 @@ UVTransformNode.prototype.copy = function ( source ) {
this.position = source.position;
UVTransformNode.prototype.toJSON = function ( meta ) {
@@ -152,6 +152,8 @@ VelocityNode.prototype.copy = function ( source ) {
this.setParams( source.params );
VelocityNode.prototype.toJSON = function ( meta ) {