Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_vertex.c
| Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | static MDeformVert *defweight_prev_init(MDeformVert *dvert_prev, | ||||
| } | } | ||||
| return dv_prev; | return dv_prev; | ||||
| } | } | ||||
| /* check if we can do partial updates and have them draw realtime | /* check if we can do partial updates and have them draw realtime | ||||
| * (without evaluating modifiers) */ | * (without evaluating modifiers) */ | ||||
| static bool vertex_paint_use_fast_update_check(Object *ob) | static bool vertex_paint_use_fast_update_check(Object *ob) | ||||
| { | { | ||||
| Mesh *me_eval = ob->runtime.mesh_eval; | Mesh *me_eval = BKE_object_get_evaluated_mesh(ob); | ||||
| if (me_eval != NULL) { | if (me_eval != NULL) { | ||||
| Mesh *me = BKE_mesh_from_object(ob); | Mesh *me = BKE_mesh_from_object(ob); | ||||
| if (me && me->mloopcol) { | if (me && me->mloopcol) { | ||||
| return (me->mloopcol == CustomData_get_layer(&me_eval->ldata, CD_MLOOPCOL)); | return (me->mloopcol == CustomData_get_layer(&me_eval->ldata, CD_MLOOPCOL)); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,242 Lines • Show Last 20 Lines | |||||