PartDesign: Recompute preview only if enabled (#26805)

Co-authored-by: Chris Hennes <[email protected]>
This commit is contained in:
Kacper Donat
2026-01-12 07:20:57 +00:00
committed by GitHub
co-authored by Chris Hennes
parent b173365653
commit 47bd6ac99e
+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