Fix "Sketch → In Workplane" not updating the UI immediately.

pull/664/head
whitequark 2020-07-28 14:10:19 +00:00
parent 56e2592e2a
commit bbf402bfe3
1 changed files with 2 additions and 0 deletions

View File

@ -1227,6 +1227,8 @@ void GraphicsWindow::MenuRequest(Command id) {
if(SS.GW.gs.n == 1 && SS.GW.gs.workplanes == 1) {
// A user-selected workplane
g->activeWorkplane = SS.GW.gs.entity[0];
SS.GW.EnsureValidActives();
SS.ScheduleShowTW();
} else if(g->type == Group::Type::DRAWING_WORKPLANE) {
// The group's default workplane
g->activeWorkplane = g->h.entity(0);