From 5408f73b964e97af49f9b1634b11f831d861ef94 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 21 Apr 2017 23:08:08 +0000 Subject: [PATCH] Fix a crash creating a group from a non-reference workplane. --- src/group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/group.cpp b/src/group.cpp index 20b4a765..6251def2 100644 --- a/src/group.cpp +++ b/src/group.cpp @@ -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;