Skip to content

Commit

Permalink
Fix MolangJS order of operation issue on some expressions
Browse files Browse the repository at this point in the history
Fix issue with animation file saving order
  • Loading branch information
JannisX11 committed Jun 10, 2022
1 parent 771428c commit 32b402c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/animations/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/molang.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 32b402c

Please sign in to comment.