forked from bartvdbraak/blender
Remove dynamic-topology flag from mesh when entering sculpt mode
This will be enabled if the file was saved with dynamic topology on, but we don't automatically re-enter dynamic-topology mode when loading a file so remove the flag. Fixes bug [#33956] projects.blender.org/tracker/?func=detail&aid=33956&group_id=9&atid=498
This commit is contained in:
parent
296f91c4cc
commit
0e2a6178c2
@ -4901,6 +4901,12 @@ static int sculpt_toggle_mode(bContext *C, wmOperator *UNUSED(op))
|
||||
/* Enter sculptmode */
|
||||
ob->mode |= OB_MODE_SCULPT;
|
||||
|
||||
/* Remove dynamic-topology flag; this will be enabled if the
|
||||
* file was saved with dynamic topology on, but we don't
|
||||
* automatically re-enter dynamic-topology mode when loading a
|
||||
* file. */
|
||||
me->flag &= ~ME_SCULPT_DYNAMIC_TOPOLOGY;
|
||||
|
||||
if (flush_recalc)
|
||||
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user