From: razmyslovich Date: Mon, 12 Sep 2016 09:17:48 +0000 (+0200) Subject: 0027863: Geom_BSplineSurface::SetVKnot(const Standard_Integer, const Standard_Real... X-Git-Tag: V7_1_0_beta~145 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=a165f002806e1e2137caf3eb17e5892f9cef4288 0027863: Geom_BSplineSurface::SetVKnot(const Standard_Integer, const Standard_Real) has no effect Fix Geom_BSplineSurface::SetVKnot function to have the same behavior as SetUKnot. --- diff --git a/src/Geom/Geom_BSplineSurface.cxx b/src/Geom/Geom_BSplineSurface.cxx index a328ab5a8d..2d7153accf 100644 --- a/src/Geom/Geom_BSplineSurface.cxx +++ b/src/Geom/Geom_BSplineSurface.cxx @@ -1099,8 +1099,11 @@ void Geom_BSplineSurface::SetVKnot } } - maxderivinvok = 0; - UpdateVKnots(); + if (K != vknots->Value (NewIndex)) { + vknots->SetValue (NewIndex, K); + maxderivinvok = 0; + UpdateVKnots(); + } } //=======================================================================