Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_vertex_color_utils.c
| Context not available. | |||||
| #define EPS_SATURATION 0.0005f | #define EPS_SATURATION 0.0005f | ||||
| void tag_object_after_update(Object *object) | |||||
| { | |||||
| BLI_assert(object->type == OB_MESH); | |||||
| Mesh *mesh = object->data; | |||||
| DEG_id_tag_update(&mesh->id, DEG_TAG_COPY_ON_WRITE); | |||||
| /* NOTE: Original mesh is used for display, so tag it directly here. */ | |||||
| BKE_mesh_batch_cache_dirty_tag(mesh, BKE_MESH_BATCH_DIRTY_ALL); | |||||
| } | |||||
| /** | /** | ||||
| * Apply callback to each vertex of the active vertex color layer. | * Apply callback to each vertex of the active vertex color layer. | ||||
| */ | */ | ||||
| Context not available. | |||||
| /* remove stale me->mcol, will be added later */ | /* remove stale me->mcol, will be added later */ | ||||
| BKE_mesh_tessface_clear(me); | BKE_mesh_tessface_clear(me); | ||||
| DEG_id_tag_update(&me->id, 0); | tag_object_after_update(ob); | ||||
| return true; | return true; | ||||
| } | } | ||||
| Context not available. | |||||