Skip to content

Commit 5ae34a0

Browse files
committed
fix(front): fix highlighter color reset logic with backup color
1 parent 169dc01 commit 5ae34a0

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

packages/front/src/fragments/Highlighter/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,15 @@ export class Highlighter
425425
for (const fragID in this.selection[name]) {
426426
const fragment = fragments.list.get(fragID);
427427

428-
if (!fragment) continue;
428+
if (!fragment) {
429+
continue;
430+
}
429431
const ids = selected[fragID];
430-
if (!ids) continue;
432+
if (!ids) {
433+
continue;
434+
}
431435
if (this.backupColor) {
432-
fragment.setColor(this.backupColor);
436+
fragment.setColor(this.backupColor, ids);
433437
} else {
434438
fragment.resetColor(ids);
435439
}

packages/front/src/fragments/Plans/example.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ world.scene = new OBC.SimpleScene(components);
4848
world.renderer = new OBCF.PostproductionRenderer(components, container);
4949
world.camera = new OBC.OrthoPerspectiveCamera(components);
5050

51-
// @ts-ignore
52-
world.camera._aaaaa = "heyyyy";
53-
5451
world.renderer.postproduction.enabled = true;
5552
world.renderer.postproduction.customEffects.outlineEnabled = true;
5653

0 commit comments

Comments
 (0)