Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
MadisonEhlers-Vertex committed Jul 25, 2023
1 parent 25cdd61 commit f739f74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/scene-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ export async function selectByItemId({
await scene
.items((op) => [
...(deselectItemId
? [op.where((q) => q.withItemId(deselectItemId)).deselect()]
? [op.where((q) => q.withItemId(deselectItemId)).deselect(), op.where((q) => q.withItemId(deselectItemId)).clearMaterialOverrides()]
: []),
...(selectItemId
? [
op
.where((q) => q.withItemId(selectItemId))
.select(createSelectColor(color)),
.select(),
op.where((q) => q.withItemId(selectItemId)).materialOverride(createSelectColor(color))
]
: []),
])
Expand Down

0 comments on commit f739f74

Please sign in to comment.