Skip to content

Commit

Permalink
Update phoenix-menu-ui.ts
Browse files Browse the repository at this point in the history
issue-:#517
  • Loading branch information
xonx4l authored Sep 6, 2023
1 parent 9b46531 commit 2a6e853
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,15 @@ export class PhoenixMenuUI implements PhoenixUI<PhoenixMenuNode> {
step: 0.1,
max: 1,
onChange: (value) => {
this.sceneManager.setGeometryOpacity(
this.sceneManager
.getObjectByName(SceneManager.EVENT_DATA_ID)
.getObjectByName(collectionName),
value,
);
},
});
const eventDataObject = this.sceneManager.getObjectByName(SceneManager.EVENT_DATA_ID);
if (eventDataObject) {
const collectionObject = eventDataObject.getObjectByName(collectionName);
if (collectionObject) {
this.sceneManager.setGeometryOpacity(collectionObject, value);
}
}
},
});

drawOptionsNode.addConfig('checkbox', {
label: 'Wireframe',
Expand Down

0 comments on commit 2a6e853

Please sign in to comment.