ソースを参照

AttributeNode: Fix serialization/deserialization. (#28944)

Michael Herzog 1 年間 前
コミット
6b4af05d40
1 ファイル変更18 行追加0 行削除
  1. 18 0
      src/nodes/core/AttributeNode.js

+ 18 - 0
src/nodes/core/AttributeNode.js

@@ -107,6 +107,24 @@ class AttributeNode extends Node {
 
 
 	}
 	}
 
 
+	serialize( data ) {
+
+		super.serialize( data );
+
+		data.global = this.global;
+		data._attributeName = this._attributeName;
+
+	}
+
+	deserialize( data ) {
+
+		super.deserialize( data );
+
+		this.global = data.global;
+		this._attributeName = data._attributeName;
+
+	}
+
 }
 }
 
 
 export default AttributeNode;
 export default AttributeNode;

粤ICP备19079148号