Fix a crash creating a group from a non-reference workplane.

pull/252/head
whitequark 2017-04-21 23:08:08 +00:00
parent fe622a1839
commit 5408f73b96
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ void Group::MenuGroup(Command id) {
if(SS.GW.projRight.Dot(ut) < 0) g.predef.negateU = true;
if(SS.GW.projUp. Dot(vt) < 0) g.predef.negateV = true;
} else if(gs.workplanes == 1 && gs.n == 1) {
if(gs.entity[0].request().IsFromReferences()) {
if(gs.entity[0].isFromRequest()) {
Entity *wrkpl = SK.GetEntity(gs.entity[0]);
Entity *normal = SK.GetEntity(wrkpl->normal);
g.subtype = Subtype::WORKPLANE_BY_POINT_ORTHO;