Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 1,488 Lines • ▼ Show 20 Lines | static void sculpt_update_object(Depsgraph *depsgraph, | ||||
| const bool use_face_sets = (ob->mode & OB_MODE_SCULPT) != 0; | const bool use_face_sets = (ob->mode & OB_MODE_SCULPT) != 0; | ||||
| ss->deform_modifiers_active = sculpt_modifiers_active(scene, sd, ob); | ss->deform_modifiers_active = sculpt_modifiers_active(scene, sd, ob); | ||||
| ss->show_mask = (sd->flags & SCULPT_HIDE_MASK) == 0; | ss->show_mask = (sd->flags & SCULPT_HIDE_MASK) == 0; | ||||
| ss->show_face_sets = (sd->flags & SCULPT_HIDE_FACE_SETS) == 0; | ss->show_face_sets = (sd->flags & SCULPT_HIDE_FACE_SETS) == 0; | ||||
| ss->building_vp_handle = false; | ss->building_vp_handle = false; | ||||
| ss->scene = scene; | |||||
| if (need_mask) { | if (need_mask) { | ||||
| if (mmd == NULL) { | if (mmd == NULL) { | ||||
| if (!CustomData_has_layer(&me->vdata, CD_PAINT_MASK)) { | if (!CustomData_has_layer(&me->vdata, CD_PAINT_MASK)) { | ||||
| BKE_sculpt_mask_layers_ensure(ob, NULL); | BKE_sculpt_mask_layers_ensure(ob, NULL); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| if (!CustomData_has_layer(&me->ldata, CD_GRID_PAINT_MASK)) { | if (!CustomData_has_layer(&me->ldata, CD_GRID_PAINT_MASK)) { | ||||
| ▲ Show 20 Lines • Show All 455 Lines • Show Last 20 Lines | |||||