Open andy6170 opened 1 year ago
When copying to clipboard the mutation is now missing.
Example of old copy: <block type="SetVariable" x="5684" y="3748"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"></mutation><field name="OBJECTTYPE">Player</field><field name="VAR" id=".1~L+5yj2frDus(~IK#H" variabletype="Player">switchTeamCounter</field><value name="OBJECT"><block type="EventPlayer"></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value></block>
<block type="SetVariable" x="5684" y="3748"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"></mutation><field name="OBJECTTYPE">Player</field><field name="VAR" id=".1~L+5yj2frDus(~IK#H" variabletype="Player">switchTeamCounter</field><value name="OBJECT"><block type="EventPlayer"></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value></block>
Current version of copy: <block type="SetVariable" x="5684" y="3748"><value name="VALUE-0"><block type="variableReferenceBlock"><field name="OBJECTTYPE">Player</field><field name="VAR" id=".1~L+5yj2frDus(~IK#H" variabletype="Player">switchTeamCounter</field><value name="OBJECT"><block type="EventPlayer"></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value></block>
<block type="SetVariable" x="5684" y="3748"><value name="VALUE-0"><block type="variableReferenceBlock"><field name="OBJECTTYPE">Player</field><field name="VAR" id=".1~L+5yj2frDus(~IK#H" variabletype="Player">switchTeamCounter</field><value name="OBJECT"><block type="EventPlayer"></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value></block>
As a result when pasting the code it is defaulting the blocks and missing the object variables and also has the same affect on Rules.
Migration Guide from XML to JSON Serialization https://docs.google.com/document/d/1wv5ORrO4icVHeU15FLSn37mdNLyJpQbMTo7mmTqsGl0/edit
Should be fixed in 2.0.0-pr, please test and report.
When copying to clipboard the mutation is now missing.
Example of old copy:
<block type="SetVariable" x="5684" y="3748"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"></mutation><field name="OBJECTTYPE">Player</field><field name="VAR" id=".1~L+5yj2frDus(~IK#H" variabletype="Player">switchTeamCounter</field><value name="OBJECT"><block type="EventPlayer"></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value></block>
Current version of copy:
<block type="SetVariable" x="5684" y="3748"><value name="VALUE-0"><block type="variableReferenceBlock"><field name="OBJECTTYPE">Player</field><field name="VAR" id=".1~L+5yj2frDus(~IK#H" variabletype="Player">switchTeamCounter</field><value name="OBJECT"><block type="EventPlayer"></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value></block>
As a result when pasting the code it is defaulting the blocks and missing the object variables and also has the same affect on Rules.