PartDesign: Recompute preview only if enabled (#26805)

Co-authored-by: Chris Hennes <[email protected]>
(cherry picked from commit 47bd6ac99e)
This commit is contained in:
Kacper Donat
2026-01-12 14:14:12 +01:00
committed by Max Wilfinger
parent 58909d1322
commit b722af7d72
+1 -1
View File
@@ -214,7 +214,7 @@ void ViewProvider::updateData(const App::Property* prop)
updatePreview();
}
else if (auto* previewExtension = getObject()->getExtensionByType<Part::PreviewExtension>(true)) {
if (!previewExtension->isPreviewFresh() && isEditing()) {
if (isPreviewEnabled() && !previewExtension->isPreviewFresh() && isEditing()) {
// Properties can be updated in batches, where some properties trigger other updates.
// We don't need to compute the preview for intermediate steps. Instead of updating
// the preview immediately (and potentially doing it multiple times in a row), we