Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 1,343 Lines • ▼ Show 20 Lines | void BKE_sculpt_update_object_before_eval(Object *ob) | ||||
| } | } | ||||
| } | } | ||||
| void BKE_sculpt_update_object_after_eval(Depsgraph *depsgraph, Object *ob_eval) | void BKE_sculpt_update_object_after_eval(Depsgraph *depsgraph, Object *ob_eval) | ||||
| { | { | ||||
| /* Update after mesh evaluation in the dependency graph, to rebuild PBVH or | /* Update after mesh evaluation in the dependency graph, to rebuild PBVH or | ||||
| * other data when modifiers change the mesh. */ | * other data when modifiers change the mesh. */ | ||||
| Object *ob_orig = DEG_get_original_object(ob_eval); | Object *ob_orig = DEG_get_original_object(ob_eval); | ||||
| Mesh *me_eval = ob_eval->runtime.mesh_eval; | Mesh *me_eval = BKE_object_get_evaluated_mesh(ob_eval); | ||||
| BLI_assert(me_eval != NULL); | BLI_assert(me_eval != NULL); | ||||
| sculpt_update_object(depsgraph, ob_orig, me_eval, false, false); | sculpt_update_object(depsgraph, ob_orig, me_eval, false, false); | ||||
| } | } | ||||
| void BKE_sculpt_update_object_for_edit(Depsgraph *depsgraph, | void BKE_sculpt_update_object_for_edit(Depsgraph *depsgraph, | ||||
| Object *ob_orig, | Object *ob_orig, | ||||
| ▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines | |||||