Salome HOME
Merge commit 'f709219506b7cd587e94abc5ebed18d629df92d8'
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_MacroArc.cpp
index ecd064a088075dc90bfae63f75d5d668602ce888..8c4128c128c7eb4764d4b43571cde87ae124643e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -302,6 +302,7 @@ AISObjectPtr SketchPlugin_MacroArc::getAISObject(AISObjectPtr thePrevious)
     anAIS.reset(new GeomAPI_AISObject());
   }
   anAIS->createShape(aCompound);
+  SketchPlugin_Tools::customizeFeaturePrs(anAIS, boolean(AUXILIARY_ID())->value());
   return anAIS;
 }
 
@@ -406,7 +407,6 @@ std::string SketchPlugin_MacroArc::processEvent(const std::shared_ptr<Events_Mes
     if(anArcType == ARC_TYPE_BY_TANGENT_EDGE()) {
       aFilledAttributeName = TANGENT_POINT_ID();
       AttributeRefAttrPtr aRefAttr = refattr(aFilledAttributeName);
-      FeaturePtr aCreatedFeature = aReentrantMessage->createdFeature();
       aRefAttr->setAttr(aCreatedFeature->attribute(SketchPlugin_Arc::END_ID()));
     }
     else if (anArcType == ARC_TYPE_BY_TRANSVERSAL_LINE()) {
@@ -444,7 +444,6 @@ std::string SketchPlugin_MacroArc::processEvent(const std::shared_ptr<Events_Mes
           if (aRefAttr.get()) {
             if (anAttribute.get()) {
               if (!anAttribute->owner().get() || !anAttribute->owner()->data()->isValid()) {
-                FeaturePtr aCreatedFeature = aReentrantMessage->createdFeature();
                 if (aCreatedFeature.get()) {
                   std::string anID = anAttribute->id();
                   std::string anArcID;