[Bf-blender-cvs] [09b8cdb25e4] master: Subsurf: Enable Optimal Display by default

Sergey Sharybin noreply at git.blender.org
Thu Mar 26 08:48:11 CET 2020


Commit: 09b8cdb25e451cf19c5671feaa9d6cdb297e3ccb
Author: Sergey Sharybin
Date:   Wed Mar 25 14:23:27 2020 +0100
Branches: master
https://developer.blender.org/rB09b8cdb25e451cf19c5671feaa9d6cdb297e3ccb

Subsurf: Enable Optimal Display by default

Affects both Subdivision Surface and Multires modifiers.

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

M	source/blender/modifiers/intern/MOD_multires.c
M	source/blender/modifiers/intern/MOD_subsurf.c

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

diff --git a/source/blender/modifiers/intern/MOD_multires.c b/source/blender/modifiers/intern/MOD_multires.c
index 742d100ac44..1f9052d12c9 100644
--- a/source/blender/modifiers/intern/MOD_multires.c
+++ b/source/blender/modifiers/intern/MOD_multires.c
@@ -61,7 +61,7 @@ static void initData(ModifierData *md)
   mmd->totlvl = 0;
   mmd->uv_smooth = SUBSURF_UV_SMOOTH_PRESERVE_CORNERS;
   mmd->quality = 4;
-  mmd->flags |= eMultiresModifierFlag_UseCrease;
+  mmd->flags |= (eMultiresModifierFlag_UseCrease | eMultiresModifierFlag_ControlEdges);
 }
 
 static void copyData(const ModifierData *md_src, ModifierData *md_dst, const int flag)
diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c
index 56180564be2..6fd28561fdb 100644
--- a/source/blender/modifiers/intern/MOD_subsurf.c
+++ b/source/blender/modifiers/intern/MOD_subsurf.c
@@ -58,7 +58,7 @@ static void initData(ModifierData *md)
   smd->renderLevels = 2;
   smd->uv_smooth = SUBSURF_UV_SMOOTH_PRESERVE_CORNERS;
   smd->quality = 3;
-  smd->flags |= eSubsurfModifierFlag_UseCrease;
+  smd->flags |= (eSubsurfModifierFlag_UseCrease | eSubsurfModifierFlag_ControlEdges);
 }
 
 static void copyData(const ModifierData *md, ModifierData *target, const int flag)



More information about the Bf-blender-cvs mailing list