Fix MolangJS order of operation issue on some expressions

Fix issue with animation file saving order
This commit is contained in:
JannisX11 2022-06-10 18:58:08 +02:00
parent 771428c1ae
commit 32b402ccee
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class Animation {
if (data) {
let animation = content.animations[this.name];
content = data;
if (this.saved_name) delete content.animations[this.saved_name];
if (this.saved_name && this.saved_name !== this.name) delete content.animations[this.saved_name];
content.animations[this.name] = animation;
// Sort

File diff suppressed because one or more lines are too long