- object.add_shape_key(name="Key", from_mix=True)
[blender.git] / source / blender / editors / object / object_shapekey.c
index 5d839e60ca980cff02282dc22e738c5bcbe397b5..99b35b998c2544035f04a7bb99c40c9626a84f05 100644 (file)
@@ -84,7 +84,7 @@
 
 static void ED_object_shape_key_add(bContext *C, Scene *scene, Object *ob, int from_mix)
 {
-       if(object_insert_shape_key(scene, ob, from_mix)) {
+       if(object_insert_shape_key(scene, ob, NULL, from_mix)) {
                Key *key= ob_get_key(ob);
                ob->shapenr= BLI_countlist(&key->block);
 
@@ -241,7 +241,7 @@ static int shape_key_add_exec(bContext *C, wmOperator *op)
        int from_mix = RNA_boolean_get(op->ptr, "from_mix");
 
        ED_object_shape_key_add(C, scene, ob, from_mix);
-       
+
        return OPERATOR_FINISHED;
 }