Skip to content

Commit

Permalink
fix(front): correct outliner position in moved models
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Oct 13, 2024
1 parent f2b924e commit 20d2c59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/front/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components-front",
"description": "Collection of frontend tools to author BIM apps.",
"version": "2.3.3",
"version": "2.3.4",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
5 changes: 5 additions & 0 deletions packages/front/src/fragments/Outliner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ export class Outliner extends OBC.Component implements OBC.Disposable {
}
const ids = items[fragID];
const clonedFrag = found.clone(ids);

clonedFrag.mesh.position.set(0, 0, 0);
clonedFrag.mesh.rotation.set(0, 0, 0);
clonedFrag.mesh.applyMatrix4(found.mesh.matrixWorld);

clonedFrag.mesh.instanceColor = null;
clonedFrag.mesh.material = [style.material];
style.meshes.add(clonedFrag.mesh);
Expand Down

0 comments on commit 20d2c59

Please sign in to comment.