[Bf-blender-cvs] [0bd7e202fbd] master: Curves: Disable Curve Normals by default
Antonio Vazquez
noreply at git.blender.org
Mon May 18 16:39:06 CEST 2020
Commit: 0bd7e202fbd6c96d45aadda5457ee71f48bfe958
Author: Antonio Vazquez
Date: Mon May 18 16:38:53 2020 +0200
Branches: master
https://developer.blender.org/rB0bd7e202fbd6c96d45aadda5457ee71f48bfe958
Curves: Disable Curve Normals by default
This patch just disable the curve Normals by default.
Reviewed By: #user_interface, billreynish, Severin
Differential Revision: https://developer.blender.org/D7755
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
M source/blender/makesdna/DNA_view3d_defaults.h
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 9d3b44f8447..665771cce1e 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -202,6 +202,8 @@ static void blo_update_defaults_screen(bScreen *screen,
if (v3d->shading.background_type != V3D_SHADING_BACKGROUND_VIEWPORT) {
copy_v3_fl(v3d->shading.background_color, 0.05f);
}
+ /* Disable Curve Normals. */
+ v3d->overlay.edit_flag &= ~V3D_OVERLAY_EDIT_CU_NORMALS;
}
else if (area->spacetype == SPACE_CLIP) {
SpaceClip *sclip = area->spacedata.first;
diff --git a/source/blender/makesdna/DNA_view3d_defaults.h b/source/blender/makesdna/DNA_view3d_defaults.h
index afade37d0c8..20b491c47f2 100644
--- a/source/blender/makesdna/DNA_view3d_defaults.h
+++ b/source/blender/makesdna/DNA_view3d_defaults.h
@@ -65,7 +65,7 @@
V3D_OVERLAY_EDIT_SHARP | V3D_OVERLAY_EDIT_FREESTYLE_EDGE | \
V3D_OVERLAY_EDIT_FREESTYLE_FACE | V3D_OVERLAY_EDIT_EDGES | \
V3D_OVERLAY_EDIT_CREASES | V3D_OVERLAY_EDIT_BWEIGHTS | \
- V3D_OVERLAY_EDIT_CU_HANDLES | V3D_OVERLAY_EDIT_CU_NORMALS, \
+ V3D_OVERLAY_EDIT_CU_HANDLES, \
\
.gpencil_paper_opacity = 0.5f, \
.gpencil_grid_opacity = 0.9f, \
More information about the Bf-blender-cvs
mailing list