Skip to content

Commit

Permalink
Update scene graph when changing mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Feb 4, 2024
1 parent a2ecc4c commit 93c8344
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/scenegraph/SceneGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export default class SceneGraph extends React.Component {
Events.on('entityidchange', this.rebuildEntityOptions);
Events.on('entitycreated', this.rebuildEntityOptions);
Events.on('entityclone', this.rebuildEntityOptions);
Events.on('entityupdate', (detail) => {
if (detail.component === 'mixin') {
this.rebuildEntityOptions();
}
});
}

/**
Expand Down

0 comments on commit 93c8344

Please sign in to comment.