fixed a serialization conflict for global variables referencing the stage

snap7
jmoenig 2021-11-12 14:47:37 +01:00
rodzic 482f592dc1
commit 0ea2a5cd9b
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -57,6 +57,7 @@
### 2021-11-12
* store: fixed importing custom categories from libraries, thanks, Eckart, for reporting this!
* gui, objects, scenes, store: reverted to HSV as default pen color model
* store: fixed a serialization conflict for global variables referencing the stage
### 2021-11-11
* German translation update, changed %hsva -> %clrdim

Wyświetl plik

@ -1745,8 +1745,8 @@ Scene.prototype.toXML = function (serializer) {
'<headers>%</headers>' +
'<code>%</code>' +
'<blocks>%</blocks>' +
'<variables>%</variables>' +
'%' + // stage
'<variables>%</variables>' +
'</scene>',
this.name || localize('Untitled'),
this.unifiedPalette ? ' palette="single"' : '',
@ -1763,8 +1763,8 @@ Scene.prototype.toXML = function (serializer) {
code('codeHeaders'),
code('codeMappings'),
serializer.store(this.stage.globalBlocks),
serializer.store(this.globalVariables),
serializer.store(this.stage)
serializer.store(this.stage),
serializer.store(this.globalVariables)
);
return xml;
};