Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
alxart committed Apr 16, 2024
1 parent e6db9d6 commit 67cd315
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ export class GltfPlugin extends Evented<GltfPluginEventTable> {
* @param state A state of building and floor that should be active on realty scene initialization.
*/
public async addRealtyScene(scene: BuildingOptions[], state?: BuildingState) {
this.realtyScene?.destroy();
this.realtyScene = new RealtyScene(this, this.map, this.options);
return this.realtyScene.init(scene, state);
}
Expand Down

0 comments on commit 67cd315

Please sign in to comment.