Skip to content

Commit

Permalink
fix(core): also load properties on classifier tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Oct 17, 2024
1 parent 55494b5 commit e47d497
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/fragments/Classifier/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const buffer = new Uint8Array(data);
const model = fragments.load(buffer);
world.scene.three.add(model);

const properties = await fetch(
"https://thatopen.github.io/engine_components/resources/small.json",
);
model.setLocalProperties(await properties.json());

/* MD
### 🗃️ Classifiying the BIM model
---
Expand Down

0 comments on commit e47d497

Please sign in to comment.