From ad0cc940539f9de2c8f69c2f995a0945f9e5304b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Thu, 8 Aug 2024 09:54:05 +0200 Subject: [PATCH] Update store.js --- src/store.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/store.js b/src/store.js index 612d2d55a..fbf56f0f8 100644 --- a/src/store.js +++ b/src/store.js @@ -1135,9 +1135,6 @@ SnapSerializer.prototype.loadCustomizedPrimitives = function ( element, stage ) { - -console.log('loading custom prims for stage', stage, world.children[0].stage === stage) - // private - overload existing customized primitives element.children.forEach(child => { var definition, names, inputs, vars, header, code, trans, comment, i, @@ -1251,6 +1248,7 @@ console.log('loading custom prims for stage', stage, world.children[0].stage === child.childNamed('scripts') ); +stage = this.scene.stage; // +++ if (stage) { // update all instances stage.allBlockInstances(definition).reverse().forEach( block => block.refresh()