Skip to content

Commit

Permalink
Merge pull request #618 from xonx4l/patch-1
Browse files Browse the repository at this point in the history
FIX:Opacity no longer works for the calo cells.
  • Loading branch information
EdwardMoyse authored Jan 10, 2024
2 parents 6727f53 + db5da40 commit 2189cdf
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,16 @@ 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);
}
}
},
});

Expand Down

0 comments on commit 2189cdf

Please sign in to comment.