[Bf-blender-cvs] [81a0fffb2d2] master: Fix T82205: Curve Hooks not working

Hans Goudey noreply at git.blender.org
Fri Oct 30 00:22:07 CET 2020


Commit: 81a0fffb2d2ccb40320bec418267b0c105db19a4
Author: Hans Goudey
Date:   Thu Oct 29 18:21:48 2020 -0500
Branches: master
https://developer.blender.org/rB81a0fffb2d2ccb40320bec418267b0c105db19a4

Fix T82205: Curve Hooks not working

Caused by my own cleanup commit rBa308607a5334. Just a simple copy-paste
error. Here the difference between `curve` and `editnurb` makes quite a bit
of difference.

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

M	source/blender/editors/curve/editcurve.c

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

diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index 15f3939b2f6..d39c7eb0d95 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -1131,7 +1131,7 @@ static int *init_index_map(Object *obedit, int *r_old_totvert)
   }
 
   int vertex_index = 0;
-  LISTBASE_FOREACH (Nurb *, nu, &curve->nurb) {
+  LISTBASE_FOREACH (Nurb *, nu, &editnurb->nurbs) {
     if (nu->bezt) {
       BezTriple *bezt = nu->bezt;
       int a = nu->pntsu;



More information about the Bf-blender-cvs mailing list