Skip to content

Commit 47bd6ac

Browse files
kadet1090chennes
andauthored
PartDesign: Recompute preview only if enabled (FreeCAD#26805)
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
1 parent b173365 commit 47bd6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mod/PartDesign/Gui/ViewProvider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void ViewProvider::updateData(const App::Property* prop)
214214
updatePreview();
215215
}
216216
else if (auto* previewExtension = getObject()->getExtensionByType<Part::PreviewExtension>(true)) {
217-
if (!previewExtension->isPreviewFresh() && isEditing()) {
217+
if (isPreviewEnabled() && !previewExtension->isPreviewFresh() && isEditing()) {
218218
// Properties can be updated in batches, where some properties trigger other updates.
219219
// We don't need to compute the preview for intermediate steps. Instead of updating
220220
// the preview immediately (and potentially doing it multiple times in a row), we

0 commit comments

Comments
 (0)