Commit: e665a60a8513ff9e639a980e5761586521a3a125
Author: Sergey Sharybin
Date:   Wed May 27 13:07:24 2015 +0500
Branches: master
https://developer.blender.org/rBe665a60a8513ff9e639a980e5761586521a3a125

Fix T44854: Creating hooks from curve to objects doesn't work

The issue was introduced in e529882 by doing wrong range checking.

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

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

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

diff --git a/source/blender/editors/curve/editcurve.c 
b/source/blender/editors/curve/editcurve.c
index 4c7a01d..06f0745 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -1188,7 +1188,7 @@ static int *initialize_index_map(Object *obedit, int 
*r_old_totvert)
 
                        while (a--) {
                                keyIndex = getCVKeyIndex(editnurb, bezt);
-                               if (keyIndex && keyIndex->vertex_index * 3 < 
old_totvert) {
+                               if (keyIndex && keyIndex->vertex_index + 2 < 
old_totvert) {
                                        if (keyIndex->switched) {
                                                
old_to_new_map[keyIndex->vertex_index] = vertex_index + 2;
                                                
old_to_new_map[keyIndex->vertex_index + 1] = vertex_index + 1;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to