Skip to content

Commit

Permalink
fix: correct highlighter not working with exploded items
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Jul 13, 2024
1 parent d327812 commit 882e872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/fragments/Exploder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class Exploder extends Component implements Disposable {

for (const groupName in groups) {
yTransform.elements[13] = i * factor * this.height;
for (const fragID in groups[groupName]) {
for (const fragID in groups[groupName].map) {
const fragment = fragments.list.get(fragID);
const itemsID = groupName + fragID;
const areItemsExploded = this.list.has(itemsID);
Expand All @@ -98,6 +98,8 @@ export class Exploder extends Component implements Disposable {

const ids = groups[groupName].map[fragID];
fragment.applyTransform(ids, yTransform);
fragment.mesh.computeBoundingSphere();
fragment.mesh.computeBoundingBox();
}
i++;
}
Expand Down

0 comments on commit 882e872

Please sign in to comment.