Skip to content

Commit

Permalink
Update store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Aug 8, 2024
1 parent f4895c3 commit ad0cc94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ad0cc94

Please sign in to comment.