more testing code

This commit is contained in:
2008-10-23 01:40:49 +00:00
parent 3a347c1caf
commit ee1a143947

View File

@@ -956,9 +956,11 @@ void vol_precache_objectinstance(Render *re, ObjectInstanceRen *obi, Material *m
}
/* don't bother if the point is not inside the volume mesh */
if (!point_inside_obi(tree, obi, co))
if (!point_inside_obi(tree, obi, co)) {
if (G.rt==5) printf("not inside mesh \n");
continue;
}
if (G.rt==5) printf("inside mesh \n");
density = vol_get_density(&shi, co);
vol_get_scattering(&shi, scatter_col, co, stepsize, density);