Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / mesh / editmesh_utils.c
index e18758a5a58ca87161aa507d437ee86174ef4982..64e6b477abe33441a73ad1fa58804889bf3135c7 100644 (file)
@@ -363,7 +363,7 @@ void EDBM_mesh_load(Main *bmain, Object *ob)
         * cycles.
         */
 #if 0
-       for (Object *other_object = G.main->object.first;
+       for (Object *other_object = bmain->object.first;
             other_object != NULL;
             other_object = other_object->id.next)
        {