[Bf-blender-cvs] [6d8f76c] master: Minor addition for completeness (unlikely to happen), make sure new sculpt struct has at least dyntopo subdivision turned on.

Antony Riakiotakis noreply at git.blender.org
Sun Dec 8 00:57:52 CET 2013


Commit: 6d8f76cfabd96bf3865f924f8afdcb13ae78beb4
Author: Antony Riakiotakis
Date:   Sun Dec 8 01:57:44 2013 +0200
http://developer.blender.org/rB6d8f76cfabd96bf3865f924f8afdcb13ae78beb4

Minor addition for completeness (unlikely to happen), make sure new
sculpt struct has at least dyntopo subdivision turned on.

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

M	source/blender/editors/sculpt_paint/sculpt.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 100eae9..33ba4f6 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5069,6 +5069,9 @@ static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op)
 
 			/* Turn on X plane mirror symmetry by default */
 			ts->sculpt->flags |= SCULPT_SYMM_X;
+
+			/* Make sure at least dyntopo subdivision is enabled */
+			ts->sculpt->flags |= SCULPT_DYNTOPO_SUBDIVIDE;
 		}
 
 		if (!ts->sculpt->detail_size)




More information about the Bf-blender-cvs mailing list