[Bf-blender-cvs] [20e68d848e7] master: Fix T89430: Realizing NURBS curve instances is broken

Hans Goudey noreply at git.blender.org
Fri Jun 25 15:56:55 CEST 2021


Commit: 20e68d848e7913237f4bf1c4c01d36ae4a7e3d88
Author: Hans Goudey
Date:   Fri Jun 25 08:56:40 2021 -0500
Branches: master
https://developer.blender.org/rB20e68d848e7913237f4bf1c4c01d36ae4a7e3d88

Fix T89430: Realizing NURBS curve instances is broken

The "copy_data" function for nurbs splines was incorrect,
it always set the destination's knots vector as "not dirty,"
even if the source's was.

===================================================================

M	source/blender/blenkernel/intern/spline_nurbs.cc

===================================================================

diff --git a/source/blender/blenkernel/intern/spline_nurbs.cc b/source/blender/blenkernel/intern/spline_nurbs.cc
index 85fb9730e83..76d046337c0 100644
--- a/source/blender/blenkernel/intern/spline_nurbs.cc
+++ b/source/blender/blenkernel/intern/spline_nurbs.cc
@@ -45,7 +45,7 @@ void NURBSpline::copy_data(Spline &dst) const
   nurbs.positions_ = positions_;
   nurbs.weights_ = weights_;
   nurbs.knots_ = knots_;
-  nurbs.knots_dirty_ = false;
+  nurbs.knots_dirty_ = knots_dirty_;
   nurbs.radii_ = radii_;
   nurbs.tilts_ = tilts_;
 }



More information about the Bf-blender-cvs mailing list