Don't regenerate the entire sketch in AddRequest().
This is unnecessary and leads to huge slowdowns on large sketches. E.g. this speeds up import of a certain large DXF from ~60s to ~3s.pull/66/head
parent
0e66eafe5a
commit
2371068d01
|
@ -866,7 +866,7 @@ hRequest GraphicsWindow::AddRequest(Request::Type type, bool rememberForUndo) {
|
||||||
// place this request's entities where the mouse is can do so. But
|
// place this request's entities where the mouse is can do so. But
|
||||||
// we mustn't try to solve until reasonable values have been supplied
|
// we mustn't try to solve until reasonable values have been supplied
|
||||||
// for these new parameters, or else we'll get a numerical blowup.
|
// for these new parameters, or else we'll get a numerical blowup.
|
||||||
SS.GenerateAll(SolveSpaceUI::Generate::REGEN);
|
r.Generate(&SK.entity, &SK.param);
|
||||||
SS.MarkGroupDirty(r.group);
|
SS.MarkGroupDirty(r.group);
|
||||||
return r.h;
|
return r.h;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue