FreeCAD: master 89b8e81d

Author Committer Branch Timestamp Parent
grggnzlz abdullah master 2021-03-13 05:12:08 master a8cb3d5d
Changeset Sketcher: Constraint svg caching

================================

Calls to:
Gui::BitmapFactory().pixmapFromSvg(type.toLatin1().data(),QSizeF(edit->constraintIconSize,edit->constraintIconSize));

are expensive and the scaled pixmap is heavily reused.

Solution is to cache the icon.
mod - src/Mod/Sketcher/Gui/ViewProviderSketch.cpp Diff File