Skip to content

Commit

Permalink
temporary fix for geometry system issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelthatsit committed Feb 10, 2024
1 parent 0b0ac2a commit 695691c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/componentSystems/GeometryStyleSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ export class GeometryStyleSystem extends MRSystem {
if (entity instanceof MREntity) {
entity.updateGeometryStyle();
}

// Cleanup
entity.dispatchEvent(new CustomEvent('child-updated', { bubbles: true }));
// FIXME: this is necessary in some cases but it's causing a constant update as of now
// entity.dispatchEvent(new CustomEvent('child-updated', { bubbles: true }));
if (!entity.alwaysNeedsGeometryUpdate) {
entity.needsGeometryUpdate = false;
}
Expand Down

0 comments on commit 695691c

Please sign in to comment.