From d0d511f940a018de37b06c43f48bd71c56a13104 Mon Sep 17 00:00:00 2001 From: Aapo Date: Sun, 20 Nov 2022 13:12:26 +0200 Subject: [PATCH] [TD] DrawViewPart: Fix Dimension attachment for Coarse Views and faceless Views --- src/Mod/TechDraw/App/DrawViewPart.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/DrawViewPart.cpp b/src/Mod/TechDraw/App/DrawViewPart.cpp index 36901ffc7d..509e8ec1d8 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.cpp +++ b/src/Mod/TechDraw/App/DrawViewPart.cpp @@ -438,6 +438,14 @@ void DrawViewPart::postHlrTasks(void) for (auto& b : bals) { b->recomputeFeature(); } + // Dimensions need to be recomputed now, unless their recomputation must be postponed + // until face creation, in which case they are recomputed after that + if (!handleFaces() || CoarseView.getValue()) { + std::vector dims = getDimensions(); + for (auto& d : dims) { + d->recomputeFeature(); + } + } //second pass if required if (ScaleType.isValue("Automatic") && @@ -453,7 +461,7 @@ void DrawViewPart::postHlrTasks(void) requestPaint(); } -//run any tasks that need to been done after faces are available +// Run any tasks that need to be done after faces are available void DrawViewPart::postFaceExtractionTasks(void) { // Some centerlines depend on faces so we could not add CL geometry before now