Skip to content

Commit 98d86df

Browse files
authored
Fix clear highlighter selection when using multiselect (#590)
* Fix: issue that clears the highlighter while using multiselect When using multiselect (in this example ctrl-key) and selecting multiple elements, a click that does not select any new object (aka clicking anywhere except on a element) will clear the selection, which is not intuitive and NOT the behavior for any 3D modeling software. I'd like to get this to the 2.3.x builds but id guess this is not possible correct? * Fix: issue that clears the highlighter while using multiselect When using multiselect (in this example ctrl-key) and selecting multiple elements, a click that does not select any new object (aka clicking anywhere except on a element) will clear the selection, which is not intuitive and NOT the behavior for any 3D modeling software. I'd like to get this to the 2.3.x builds but id guess this is not possible correct?
1 parent 021f566 commit 98d86df

File tree

1 file changed

+1
-1
lines changed
  • packages/front/src/fragments/Highlighter

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class Highlighter
267267
const caster = casters.get(world);
268268
const result = caster.castRay(allMeshes);
269269

270-
if (!result || !result.face) {
270+
if ((!result || !result.face) && removePrevious) {
271271
this.clear(name);
272272
return null;
273273
}

0 commit comments

Comments
 (0)