From: azv Date: Fri, 28 Feb 2020 06:42:05 +0000 (+0300) Subject: Fix for filtering non-periodic B-spline in Tangent constraint (issue #3158) X-Git-Tag: V9_5_0a2~80 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=98a69c29b5f7357846d88f74166bbc2eef552c59;p=modules%2Fshaper.git Fix for filtering non-periodic B-spline in Tangent constraint (issue #3158) --- diff --git a/src/SketchPlugin/SketchPlugin_Validators.cpp b/src/SketchPlugin/SketchPlugin_Validators.cpp index f4d6b324c..a541519ad 100644 --- a/src/SketchPlugin/SketchPlugin_Validators.cpp +++ b/src/SketchPlugin/SketchPlugin_Validators.cpp @@ -212,7 +212,7 @@ bool SketchPlugin_TangentAttrValidator::isValid(const AttributePtr& theAttribute AttributePoint2DArrayPtr aPntArray = std::dynamic_pointer_cast(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()) :