Skip to content

Commit

Permalink
Update PrimitiveEditTool.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscognite committed Oct 2, 2024
1 parent 5e57c2b commit c30d835
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ export abstract class PrimitiveEditTool extends BaseEditTool {
domainObject.setSelectedInteractive(true);
return;
}
const ray = this.getRay(event);
if (creator === undefined) {
creator = this.createCreator();
if (creator === undefined) {
await super.onClick(event);
return;
}
const ray = this.getRay(event);
if (!creator.addPoint(ray, intersection)) {
return;
}
Expand Down

0 comments on commit c30d835

Please sign in to comment.