[Bf-blender-cvs] [246d59ff0ff] master: Defaults: Reduce near-clipping in factory settings

Julian Eisel noreply at git.blender.org
Fri Apr 24 16:18:53 CEST 2020


Commit: 246d59ff0ff2b4848d9b3b57e5c01dde3f2246e3
Author: Julian Eisel
Date:   Fri Apr 24 15:19:54 2020 +0200
Branches: master
https://developer.blender.org/rB246d59ff0ff2b4848d9b3b57e5c01dde3f2246e3

Defaults: Reduce near-clipping in factory settings

For newly opened 3D Views, the default would actually be 0.01m. But the
code to update the default for all existing 3D Views in the
startup.blend was missing. So the defaults were out-of-sync.

0.01m is the more reasonable default as agreed on by the UI team.

===================================================================

M	source/blender/blenloader/intern/versioning_defaults.c

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index aa34bfd0de1..291713bc973 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -197,6 +197,7 @@ static void blo_update_defaults_screen(bScreen *screen,
       v3d->gp_flag |= V3D_GP_SHOW_EDIT_LINES;
       /* Remove dither pattern in wireframe mode. */
       v3d->shading.xray_alpha_wire = 0.0f;
+      v3d->clip_start = 0.01f;
       /* Skip startups that use the viewport color by default. */
       if (v3d->shading.background_type != V3D_SHADING_BACKGROUND_VIEWPORT) {
         copy_v3_fl(v3d->shading.background_color, 0.05f);



More information about the Bf-blender-cvs mailing list