-// 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
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;
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()) {