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]
solver
Jonathan Westhues 2009-01-04 04:39:55 -08:00
parent 8d656bc600
commit 37795d24ba
1 changed files with 6 additions and 0 deletions

View File

@ -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(