merge with trunk/2.5 at r24378
[blender-staging.git] / source / blender / editors / object / object_shapekey.c
index eb27486b93c4e6fc0341707ecc90c666ec09fffc..38bf5830bd59d2ece5706e283b0548828e171b62 100644 (file)
@@ -240,6 +240,7 @@ static void insert_lattkey(Scene *scene, Object *ob)
        if(key==NULL) {
                key= lt->key= add_key( (ID *)lt);
                key->type= KEY_RELATIVE;
+               newkey= 1;
        }
 
        kb= add_keyblock(scene, key);