Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-12-08 03:57:44 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-12-08 03:57:44 +0400
commit6d8f76cfabd96bf3865f924f8afdcb13ae78beb4 (patch)
treeffb51480d6b4f624b03b311fad36af232e1185f4 /source/blender/editors/sculpt_paint
parent9f1ace246951e3d54f6e75d9b8d548501bc4ee0b (diff)
Minor addition for completeness (unlikely to happen), make sure new
sculpt struct has at least dyntopo subdivision turned on.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 100eae97f91..33ba4f6fef0 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)