Fix #28035: point density texture doesn't bake.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 25 Jul 2011 16:37:10 +0000 (16:37 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 25 Jul 2011 16:37:10 +0000 (16:37 +0000)
source/blender/render/intern/source/convertblender.c

index 7782077604d12be887662255d7a93650d5498f51..b385b507707876731d2dd3c8c28e42b487f8da48 100644 (file)
@@ -5778,6 +5778,14 @@ void RE_Database_Baking(Render *re, Main *bmain, Scene *scene, unsigned int lay,
                if(re->r.mode & R_RAYTRACE)
                        makeraytree(re);
        
+       /* point density texture */
+       if(!re->test_break(re->tbh))
+               make_pointdensities(re);
+
+       /* voxel data texture */
+       if(!re->test_break(re->tbh))
+               make_voxeldata(re);
+
        /* occlusion */
        if((re->wrld.mode & (WO_AMB_OCC|WO_ENV_LIGHT|WO_INDIRECT_LIGHT)) && !re->test_break(re->tbh))
                if(re->wrld.ao_gather_method == WO_AOGATHER_APPROX)