Update wintersky and molangjs

Fix issue with loading particle files mutliple times
This commit is contained in:
JannisX11 2021-01-11 22:12:08 +01:00
parent 97c853435c
commit c1979991f5
3 changed files with 7 additions and 1501 deletions

View File

@ -1369,7 +1369,10 @@ const Animator = {
if (!json_content || !json_content.particle_effect) return;
if (Animator.particle_effects[path]) {
Animator.particle_effects[path].config.reset().setFromJSON(json_content, {path});
Animator.particle_effects[path].config
.reset()
.setFromJSON(json_content, {path})
.set('file_path', path);
for (var uuid in Animator.particle_effects[path].emitters) {
let emitter = Animator.particle_effects[path].emitters[uuid];
emitter.updateConfig();
@ -1892,6 +1895,7 @@ Interface.definePanels(function() {
},
component: {
name: 'panel-placeholders',
components: {VuePrismEditor},
data() { return {
text: ''
}},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long