From 011e19060aaa98c7c05f1b3412c78612a3d00a32 Mon Sep 17 00:00:00 2001 From: grggnzlz Date: Sun, 28 Feb 2021 22:26:00 -0600 Subject: [PATCH] Sketcher: fix performance issue with drawing svg icons --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 6c96f5871a..5fdd4e7cdc 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -5879,8 +5879,11 @@ Restart: } - this->drawConstraintIcons(); - this->updateColor(); + // Avoids unneeded calls to pixmapFromSvg + if(Mode==STATUS_NONE) { + this->drawConstraintIcons(); + this->updateColor(); + } // delete the cloned objects if (temp) {