提交 2641cd08 编写于 作者: S sunag

fix copy and serialize

上级 3e7cbc28
......@@ -47,7 +47,7 @@ NodePass.prototype.render = function () {
NodePass.prototype.copy = function ( source ) {
this.material = source.material;
this.input = source.input;
};
......@@ -78,7 +78,7 @@ NodePass.prototype.toJSON = function ( meta ) {
if ( JSON.stringify( this.userData ) !== '{}' ) data.userData = this.userData;
data.material = this.material.toJSON( meta ).uuid;
data.input = this.input.toJSON( meta ).uuid;
}
......
......@@ -82,7 +82,7 @@ NodePostProcessing.prototype = {
copy: function ( source ) {
this.material = source.material;
this.output = source.output;
},
......@@ -113,7 +113,7 @@ NodePostProcessing.prototype = {
if ( JSON.stringify( this.userData ) !== '{}' ) data.userData = this.userData;
data.material = this.material.toJSON( meta ).uuid;
data.output = this.output.toJSON( meta ).uuid;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册