Assert: add check to last commit
This commit is contained in:
parent
b536d1b95f
commit
3c3d80ea22
Notes:
blender-bot
2023-02-14 06:47:29 +01:00
Referenced by issue #60659, First click issue,Operator Menus (Pie, Menu) need 2nd or 3rd click to confirm on OSX Referenced by issue #60502, Creasing behavior on 2.8 seams wrong Referenced by issue #60355, option "None" in the drag action menu of Transform tool behaves like "Move"
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue