- object.add_shape_key(name="Key", from_mix=True)
[blender.git] / source / blender / editors / object / object_modifier.c
index 8bfc9a66690697b77d8dc6935897949157167d02..3e9b1cfe7c71acd310bc9644fc4b29a69b304703 100644 (file)
@@ -370,11 +370,11 @@ static int modifier_apply_shape(ReportList *reports, Scene *scene, Object *ob, M
                        key->type= KEY_RELATIVE;
                        /* if that was the first key block added, then it was the basis.
                         * Initialise it with the mesh, and add another for the modifier */
-                       kb= add_keyblock(key);
+                       kb= add_keyblock(key, NULL);
                        mesh_to_key(me, kb);
                }
 
-               kb= add_keyblock(key);
+               kb= add_keyblock(key, md->name);
                DM_to_meshkey(dm, me, kb);
                
                dm->release(dm);