]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_MacroBSpline.cpp
Salome HOME
Improve code coverage for AttributeRefAttrList.
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_MacroBSpline.cpp
index 4f491fe2d9cd7470ef2651cf1445116c24035bc7..0ed1258b51d1526b36c5c0bbf73eedf5a1f8d4de 100644 (file)
@@ -142,6 +142,9 @@ std::string SketchPlugin_MacroBSpline::processEvent(
 
 FeaturePtr SketchPlugin_MacroBSpline::createBSplineFeature()
 {
+  if (myKnots.empty() || myMultiplicities.empty())
+    getAISObject(AISObjectPtr()); // fill B-spline parameters
+
   FeaturePtr aBSpline = sketch()->addFeature(
       myIsPeriodic ? SketchPlugin_BSplinePeriodic::ID() : SketchPlugin_BSpline::ID());