From 2371068d01d0d45d660b81c451470f0effb75186 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 10 Oct 2016 20:33:02 +0000 Subject: [PATCH] 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. --- src/mouse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mouse.cpp b/src/mouse.cpp index e2cf3df..58f1857 100644 --- a/src/mouse.cpp +++ b/src/mouse.cpp @@ -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 // we mustn't try to solve until reasonable values have been supplied // 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); return r.h; }