Skip to content

Commit

Permalink
fix(core): correct bounding boxer behavior for fragment meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Aug 12, 2024
1 parent 9072121 commit 17a0fba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components",
"description": "Collection of core functionalities to author BIM apps.",
"version": "2.1.25",
"version": "2.1.26",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/Components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Components implements Disposable {
/**
* The version of the @thatopen/components library.
*/
static readonly release = "2.1.25";
static readonly release = "2.1.26";

/** {@link Disposable.onDisposed} */
readonly onDisposed = new Event<void>();
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/fragments/BoundingBoxer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ export class BoundingBoxer extends Component implements Disposable {

const instances = new Set<number>();

if (itemIDs && mesh instanceof FRAGS.FragmentMesh) {
if (mesh instanceof FRAGS.FragmentMesh) {
if (!itemIDs) {
itemIDs = mesh.fragment.ids;
}
for (const itemID of itemIDs) {
const ids = mesh.fragment.getInstancesIDs(itemID);
if (!ids) continue;
Expand Down

0 comments on commit 17a0fba

Please sign in to comment.