svn merge ^/trunk/blender -r46300:46330
[blender.git] / source / blender / blenkernel / intern / object.c
index 14f23032dd91971361974867bbaec805f5133780..c04fdc4f4109c0d092240db6ba56e47227290cb9 100644 (file)
@@ -772,9 +772,6 @@ Object *BKE_object_add_only_object(int type, const char *name)
 {
        Object *ob;
 
-       if(!name)
-               name = get_obdata_defname(type);
-
        ob= BKE_libblock_alloc(&G.main->object, ID_OB, name);
 
        /* default object vars */