Fix T53291: Deleting objects do not delete them from the blend file
[blender.git] / source / blender / makesrna / intern / rna_main_api.c
index d1b28bffc7ee847ebfdbb6ae9993c87b7a056942..f15006fa0ed520ac73d9afacd7d3486150486c81 100644 (file)
@@ -249,7 +249,6 @@ static Object *rna_Main_objects_new(Main *bmain, ReportList *reports, const char
        }
 
        ob = BKE_object_add_only_object(bmain, type, safe_name);
-       id_us_min(&ob->id);
 
        ob->data = data;
        test_object_materials(ob, ob->data);