Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 8,065 Lines • ▼ Show 20 Lines | static void sculpt_init_session(Depsgraph *depsgraph, Scene *scene, Object *ob) | ||||
| for (int i = 0; i < ss->totfaces; i++) { | for (int i = 0; i < ss->totfaces; i++) { | ||||
| if (ss->face_sets[i] == SCULPT_FACE_SET_NONE) { | if (ss->face_sets[i] == SCULPT_FACE_SET_NONE) { | ||||
| ss->face_sets[i] = new_face_set; | ss->face_sets[i] = new_face_set; | ||||
| } | } | ||||
| } | } | ||||
| /* Update the Face Sets visibility with the vertex visibility changes that may have been done | /* Update the Face Sets visibility with the vertex visibility changes that may have been done | ||||
| * outside Sculpt Mode */ | * outside Sculpt Mode */ | ||||
| SCULPT_visibility_sync_all_vertex_to_face_sets(ob->sculpt); | Mesh *mesh = ob->data; | ||||
| BKE_sculpt_face_sets_ensure_from_base_mesh_visibility(mesh); | |||||
| } | } | ||||
| static int ed_object_sculptmode_flush_recalc_flag(Scene *scene, | static int ed_object_sculptmode_flush_recalc_flag(Scene *scene, | ||||
| Object *ob, | Object *ob, | ||||
| MultiresModifierData *mmd) | MultiresModifierData *mmd) | ||||
| { | { | ||||
| int flush_recalc = 0; | int flush_recalc = 0; | ||||
| /* Multires in sculpt mode could have different from object mode subdivision level. */ | /* Multires in sculpt mode could have different from object mode subdivision level. */ | ||||
| ▲ Show 20 Lines • Show All 1,096 Lines • Show Last 20 Lines | |||||