From 026f9369894bd526e049ee0fbf2ee928ffdde612 Mon Sep 17 00:00:00 2001 From: ruevs Date: Tue, 1 Feb 2022 18:29:34 +0200 Subject: [PATCH] A workplane can now be defined from a workplane defined by point and normal It is now possible to create a "New Group | Sketch in New Workplane" from an existing workplane defined using a point and a nowmal. Before we used to hit the `ssassert(false, "Unexpected workplane subtype");`. This makes 4308dc136b03d6727da96ec75cc7ae27d169040a more complete and is related to #1120, #1048 and https://github.com/solvespace/solvespace/pull/1054 --- src/group.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/group.cpp b/src/group.cpp index 174bab58..529fce64 100644 --- a/src/group.cpp +++ b/src/group.cpp @@ -136,6 +136,9 @@ void Group::MenuGroup(Command id, Platform::Path linkFile) { g.predef.negateV = wrkplg->predef.negateV; } else if(wrkplg->subtype == Subtype::WORKPLANE_BY_POINT_ORTHO) { g.predef.q = wrkplg->predef.q; + } else if(wrkplg->subtype == Subtype::WORKPLANE_BY_POINT_NORMAL) { + g.predef.q = wrkplg->predef.q; + g.predef.entityB = wrkplg->predef.entityB; } else ssassert(false, "Unexpected workplane subtype"); } } else if(gs.anyNormals == 1 && gs.points == 1 && gs.n == 2) {