X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Fillet1D.cpp;h=24ba1854870e69377003dd7ff73c1c03f72230e5;hb=539608b3f0642b0fc2d8c914411e621e01d5c8e5;hp=e60d0f4b03393c404b3300ce7a1dd12d50d91952;hpb=724c0db85290472474a71c1165ae2c06670e7372;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp b/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp index e60d0f4b0..24ba18548 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Fillet1D.cpp @@ -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()) {