Fix for undefined "index" in key.c.
[blender-staging.git] / 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;