uvcalc_lightmap would raise an error on meshes with no faces.
[blender.git] / source / blender / render / intern / source / convertblender.c
index 33cad2789c6d6092a0432383801f26daee411552..dbade68ba1dae46675b69c76eb9ddd0630d0ea81 100644 (file)
@@ -5417,6 +5417,9 @@ void RE_Database_Baking(Render *re, Scene *scene, int type, Object *actob)
 
        /* renderdata setup and exceptions */
        re->r= scene->r;
+       
+       RE_init_threadcount(re);
+       
        re->flag |= R_GLOB_NOPUNOFLIP;
        re->excludeob= actob;
        if(type == RE_BAKE_LIGHT)