We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 624b515 commit e444737Copy full SHA for e444737
1 file changed
packages/front/src/fragments/Highlighter/index.ts
@@ -267,8 +267,10 @@ export class Highlighter
267
const caster = casters.get(world);
268
const result = caster.castRay(allMeshes);
269
270
- if ((!result || !result.face) && removePrevious) {
271
- this.clear(name);
+ if (!result || !result.face) {
+ if (removePrevious) {
272
+ this.clear(name);
273
+ }
274
return null;
275
}
276
0 commit comments