X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Fillet1D.cpp;h=efe33d041b88f18af1c86184a751d7c231145934;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=e1145fb52bb79fd1149f47b78c2dc9c7ef8416d5;hpb=4afb998c2356f5f6a415f6d7183b4427f97f3616;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp b/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp index e1145fb52..efe33d041 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2020-2021 CEA/DEN, EDF R&D +// Copyright (C) 2020-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -87,7 +87,9 @@ bool FeaturesPlugin_Fillet1D::baseShapes(ListOfShape& theWires, MapShapeSubs& th int aNbSel = aSelList->size(); for (int ind = 0; ind < aNbSel; ++ind) { AttributeSelectionPtr aCurSel = aSelList->value(ind); - GeomShapePtr aWire = aCurSel->context()->shape(); + GeomShapePtr aWire = aCurSel->value(); + if (!aWire.get() && aCurSel->context().get()) + aWire = aCurSel->context()->shape(); if (aProcessedWires.find(aWire) != aProcessedWires.end()) continue; @@ -124,7 +126,6 @@ bool FeaturesPlugin_Fillet1D::baseShapes(ListOfShape& theWires, MapShapeSubs& th return false; } - // keep the sequence of wires and fillet vertices stable theWires.push_back(aWire); for (GeomAPI_WireExplorer anExp(aWire->wire()); anExp.more(); anExp.next()) {