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()