Fix for undefined "index" in key.c.
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Jun 2011 07:35:41 +0000 (07:35 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Jun 2011 07:35:41 +0000 (07:35 +0000)
Probably forgotten to be remaned to defgrp_index after
recent commit here.

source/blender/blenkernel/intern/key.c

index 78bfe79bf9b95ac9aae388f35d4e5e2b53df8a30..cf5fe1c3740828c95def5de099aa96040b1ab775 100644 (file)
@@ -1030,7 +1030,7 @@ static float *get_weights_array(Object *ob, char *vgroup)
        
        /* find the group (weak loop-in-loop) */
        defgrp_index= defgroup_name_index(ob, vgroup);
-       if(index >= 0) {
+       if(defgrp_index >= 0) {
                float *weights;
                int i, j;