permit construction geometry toggle while drawing
parent
47c3209b48
commit
745a12c3c4
|
@ -1304,6 +1304,20 @@ c:
|
|||
break;
|
||||
|
||||
case Command::CONSTRUCTION: {
|
||||
// if we are drawing
|
||||
if(SS.GW.pending.operation == Pending::DRAGGING_NEW_POINT ||
|
||||
SS.GW.pending.operation == Pending::DRAGGING_NEW_LINE_POINT ||
|
||||
SS.GW.pending.operation == Pending::DRAGGING_NEW_ARC_POINT ||
|
||||
SS.GW.pending.operation == Pending::DRAGGING_NEW_CUBIC_POINT ||
|
||||
SS.GW.pending.operation == Pending::DRAGGING_NEW_RADIUS) {
|
||||
for(auto &hr : SS.GW.pending.requests) {
|
||||
Request* r = SK.GetRequest(hr);
|
||||
r->construction = !(r->construction);
|
||||
SS.MarkGroupDirty(r->group);
|
||||
}
|
||||
SS.GW.Invalidate();
|
||||
break;
|
||||
}
|
||||
SS.GW.GroupSelection();
|
||||
if(SS.GW.gs.entities == 0) {
|
||||
Error(_("No entities are selected. Select entities before "
|
||||
|
|
|
@ -1042,6 +1042,7 @@ void GraphicsWindow::MouseLeftDown(double mx, double my, bool shiftDown, bool ct
|
|||
ConstrainPointByHovered(hr.entity(1), &mouse);
|
||||
|
||||
ClearSuper();
|
||||
AddToPending(hr);
|
||||
|
||||
pending.operation = Pending::DRAGGING_NEW_RADIUS;
|
||||
pending.circle = hr.entity(0);
|
||||
|
|
Loading…
Reference in New Issue