From 2d9c403cc0152c2ec008dd1b7289a295b92effa3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 14 Dec 2021 00:30:59 +0100 Subject: [PATCH] PD: in ViewProviderLoft::highlightSection follow the same logic as in Loft::execute for selected profiles/sections --- src/Mod/PartDesign/Gui/ViewProviderLoft.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp b/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp index 371e09b360..85bb8fd335 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp @@ -125,8 +125,12 @@ void ViewProviderLoft::highlightSection(bool on) PartDesign::Loft* pcLoft = static_cast(getObject()); auto sections = pcLoft->Sections.getSubListValues(); for (auto it : sections) { - if (it.second.size() == 1 && it.second[0].empty()) + // only take the entire shape when we have a sketch selected, but + // not a point of the sketch + auto subName = it.second.empty() ? "" : it.second.front(); + if (it.first->isDerivedFrom(Part::Part2DObject::getClassTypeId()) && subName.compare(0, 6, "Vertex") != 0) { it.second.clear(); + } highlightReferences(dynamic_cast(it.first), it.second, on); } }