Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0307b04
)
Fix for filtering non-periodic B-spline in Tangent constraint (issue #3158)
author
azv
<azv@opencascade.com>
Fri, 28 Feb 2020 06:42:05 +0000
(09:42 +0300)
committer
azv
<azv@opencascade.com>
Fri, 28 Feb 2020 06:42:05 +0000
(09:42 +0300)
src/SketchPlugin/SketchPlugin_Validators.cpp
patch
|
blob
|
history
diff --git
a/src/SketchPlugin/SketchPlugin_Validators.cpp
b/src/SketchPlugin/SketchPlugin_Validators.cpp
index f4d6b324cc427a9b6c506b5d4473de7f71eea169..a541519adbc838f38c73c7ff6346b07b6fce7fa5 100644
(file)
--- 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<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()) :