From 37795d24ba7ceac754e2acc4911cdcd7e9ef96ad Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Sun, 4 Jan 2009 04:39:55 -0800 Subject: [PATCH] Don't let the user create workplanes locked in another workplane; that is almost surely a mistake. [git-p4: depot-paths = "//depot/solvespace/": change = 1888] --- draw.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/draw.cpp b/draw.cpp index cdfc13df..54f24380 100644 --- a/draw.cpp +++ b/draw.cpp @@ -467,6 +467,12 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) { break; case MNU_WORKPLANE: + if(LockedInWorkplane()) { + Error("Sketching in a workplane already; sketch in 3d before " + "creating new workplane."); + ClearSuper(); + break; + } hr = AddRequest(Request::WORKPLANE); SS.GetEntity(hr.entity(1))->PointForceTo(v); SS.GetEntity(hr.entity(32))->NormalForceTo(