Sfoglia il codice sorgente

AttributeNode: Fix serialization/deserialization. (#28944)

Michael Herzog 1 anno fa
parent
commit
6b4af05d40
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  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;

粤ICP备19079148号