diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-09 02:32:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-09 02:33:36 +0300 |
commit | 3c3d80ea22af15e13237f978181a881b90c41e7c (patch) | |
tree | 1edce4076c6e5f17eb03ffa4a5a66c8211be21b3 /source | |
parent | b536d1b95f01de9400d77dbaf311677222063178 (diff) |
Assert: add check to last commit
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 62f5b018545..ce4d60f6191 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -2961,7 +2961,7 @@ void BKE_object_handle_update(Depsgraph *depsgraph, Scene *scene, Object *ob) void BKE_object_sculpt_data_create(Object *ob) { - BLI_assert(ob->mode & OB_MODE_ALL_SCULPT); + BLI_assert((ob->sculpt == NULL) && (ob->mode & OB_MODE_ALL_SCULPT)); ob->sculpt = MEM_callocN(sizeof(SculptSession), __func__); ob->sculpt->mode_type = ob->mode; } |