Salome HOME
Python API for periodic B-splines and unit-tests for creation and modification.
[modules/shaper.git] / src / SketchSolver / PlaneGCSSolver / PlaneGCSSolver_AttributeBuilder.cpp
index 988a3c5a4d676b6e1a9041d7053dc44b98e2c79f..3323048d406494dd26deb0b750ad1abc59989325 100644 (file)
@@ -89,10 +89,9 @@ static EntityWrapperPtr createScalar(const AttributePtr&     theAttribute,
      (theAttribute->id() == SketchPlugin_MultiRotation::ANGLE_ID() &&
       anOwner->getKind() == SketchPlugin_MultiRotation::ID()))
     aWrapper = ScalarWrapperPtr(new PlaneGCSSolver_AngleWrapper(createParameter(theStorage)));
-  else if ((anOwner->getKind() == SketchPlugin_BSpline::ID() &&
-            theAttribute->id() == SketchPlugin_BSpline::DEGREE_ID()) ||
-           (anOwner->getKind() == SketchPlugin_BSplinePeriodic::ID() &&
-            theAttribute->id() == SketchPlugin_BSplinePeriodic::DEGREE_ID()))
+  else if ((anOwner->getKind() == SketchPlugin_BSpline::ID() ||
+            anOwner->getKind() == SketchPlugin_BSplinePeriodic::ID()) &&
+           theAttribute->id() == SketchPlugin_BSplineBase::DEGREE_ID())
     // Degree of B-spline is not processed by the solver
     aWrapper = ScalarWrapperPtr(new PlaneGCSSolver_ScalarWrapper(createParameter(nullptr)));
   else