Skip to content

Commit

Permalink
Fix #2430 CEM animations of different groups are linked
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Sep 28, 2024
1 parent 60c8165 commit 6be21b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions js/util/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ class Property {
if (this.isArray || this.isVector || this.isVector2) {
if (instance[this.name] instanceof Array) {
target[this.name] = instance[this.name].slice();
if (this.isArray) {
try {
instance[this.name].forEach((item, i) => {
if (typeof item == 'object') {
instance[this.name][i] = JSON.parse(JSON.stringify(item));
}
})
} catch (err) {
console.error(err);
}
}
}
} else {
target[this.name] = instance[this.name];
Expand Down

0 comments on commit 6be21b9

Please # to comment.