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(); + } } //=======================================================================