From 98a69c29b5f7357846d88f74166bbc2eef552c59 Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 28 Feb 2020 09:42:05 +0300 Subject: [PATCH] Fix for filtering non-periodic B-spline in Tangent constraint (issue #3158) --- src/SketchPlugin/SketchPlugin_Validators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) : -- 2.39.2