Skip to content

Commit

Permalink
fix(front): fix highlighter color reset logic with backup color
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Aug 6, 2024
1 parent 169dc01 commit 5ae34a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 7 additions & 3 deletions packages/front/src/fragments/Highlighter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,15 @@ export class Highlighter
for (const fragID in this.selection[name]) {
const fragment = fragments.list.get(fragID);

if (!fragment) continue;
if (!fragment) {
continue;
}
const ids = selected[fragID];
if (!ids) continue;
if (!ids) {
continue;
}
if (this.backupColor) {
fragment.setColor(this.backupColor);
fragment.setColor(this.backupColor, ids);
} else {
fragment.resetColor(ids);
}
Expand Down
3 changes: 0 additions & 3 deletions packages/front/src/fragments/Plans/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ world.scene = new OBC.SimpleScene(components);
world.renderer = new OBCF.PostproductionRenderer(components, container);
world.camera = new OBC.OrthoPerspectiveCamera(components);

// @ts-ignore
world.camera._aaaaa = "heyyyy";

world.renderer.postproduction.enabled = true;
world.renderer.postproduction.customEffects.outlineEnabled = true;

Expand Down

0 comments on commit 5ae34a0

Please sign in to comment.