]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for filtering non-periodic B-spline in Tangent constraint (issue #3158)
authorazv <azv@opencascade.com>
Fri, 28 Feb 2020 06:42:05 +0000 (09:42 +0300)
committerazv <azv@opencascade.com>
Fri, 28 Feb 2020 06:42:05 +0000 (09:42 +0300)
src/SketchPlugin/SketchPlugin_Validators.cpp

index f4d6b324cc427a9b6c506b5d4473de7f71eea169..a541519adbc838f38c73c7ff6346b07b6fce7fa5 100644 (file)
@@ -212,7 +212,7 @@ bool SketchPlugin_TangentAttrValidator::isValid(const AttributePtr& theAttribute
 
       AttributePoint2DArrayPtr aPntArray =
           std::dynamic_pointer_cast<GeomDataAPI_Point2DArray>(anAttr);
-      if (aPntArray) {
+      if (aPntArray && anOwner->getKind() == SketchPlugin_BSpline::ID()) {
         // check index of the pole
         AttributeIntegerPtr anIndex = theAttrName == SketchPlugin_Constraint::ENTITY_A() ?
             theFeature->integer(SketchPlugin_ConstraintCoincidenceInternal::INDEX_ENTITY_A()) :