From daf8790884351ebd28f3c9d5c7a3b362bae4fb3a Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Wed, 3 Dec 2025 19:12:27 +0100 Subject: [PATCH] Part: revert changes to ViewProviderExt::getDetails (#25912) --- src/Mod/Part/Gui/ViewProviderExt.cpp | 34 +--------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/src/Mod/Part/Gui/ViewProviderExt.cpp b/src/Mod/Part/Gui/ViewProviderExt.cpp index a7a004eb90..af69992726 100644 --- a/src/Mod/Part/Gui/ViewProviderExt.cpp +++ b/src/Mod/Part/Gui/ViewProviderExt.cpp @@ -609,39 +609,7 @@ SoDetail* ViewProviderPartExt::getDetail(const char* subelement) const std::string element = type.first; int index = type.second; - // 2. If standard parsing failed, try resolving as a Topological Name - if (index <= 0 && subelement && *subelement) { - // Get the underlying shape - const Part::TopoShape& shape = Part::Feature::getTopoShape( - getObject(), - Part::ShapeOption::ResolveLink | Part::ShapeOption::Transform - ); - // Attempt to resolve the complex string to a sub-shape - TopoDS_Shape subShape = shape.getSubShape(subelement); - - if (!subShape.IsNull()) { - // If found, identify what type it is and find its 1-based index - if (subShape.ShapeType() == TopAbs_FACE) { - element = "Face"; - index = shape.findShape(subShape); - } - else if (subShape.ShapeType() == TopAbs_EDGE) { - element = "Edge"; - index = shape.findShape(subShape); - } - else if (subShape.ShapeType() == TopAbs_VERTEX) { - element = "Vertex"; - index = shape.findShape(subShape); - } - } - } - - // 3. If we still don't have a valid index, return null - if (index <= 0) { - return nullptr; - } - - // 4. Create the Coin3D Detail + // 2. Create the Coin3D Detail if (element == "Face") { SoFaceDetail* detail = new SoFaceDetail(); detail->setPartIndex(index - 1);