[TD] DrawViewPart: Fix Dimension attachment for Coarse Views and faceless Views

This commit is contained in:
Aapo
2022-11-20 13:12:26 +02:00
committed by WandererFan
parent ba62ec0e24
commit d0d511f940

View File

@@ -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<TechDraw::DrawViewDimension*> 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