Change default baking bias distance to 0.001 for new scenes
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 22 Dec 2012 18:31:05 +0000 (18:31 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 22 Dec 2012 18:31:05 +0000 (18:31 +0000)
Would need to update startup.blend as well, but not so much familiar
with doing this nowadays.

source/blender/blenkernel/intern/scene.c

index 3bb7449..baf2e7e 100644 (file)
@@ -433,6 +433,7 @@ static Scene *scene_add(Main *bmain, const char *name)
        sce->r.bake_flag = R_BAKE_CLEAR;
        sce->r.bake_normal_space = R_BAKE_SPACE_TANGENT;
        sce->r.bake_samples = 256;
+       sce->r.bake_biasdist = 0.001;
        sce->r.scemode = R_DOCOMP | R_DOSEQ | R_EXTENSION;
        sce->r.stamp = R_STAMP_TIME | R_STAMP_FRAME | R_STAMP_DATE | R_STAMP_CAMERA | R_STAMP_SCENE | R_STAMP_FILENAME | R_STAMP_RENDERTIME;
        sce->r.stamp_font_id = 12;