Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_vertex.c
| Context not available. | |||||
| Brush *brush = BKE_paint_brush(&vp->paint); | Brush *brush = BKE_paint_brush(&vp->paint); | ||||
| /* This effects the actual brush radius, so things farther away | /* This effects the actual brush radius, so things farther away | ||||
| * are compared with a larger radius and vise versa. */ | * are compared with a larger radius and vice versa. */ | ||||
| if (cache->first_time) { | if (cache->first_time) { | ||||
| RNA_float_get_array(ptr, "location", cache->true_location); | RNA_float_get_array(ptr, "location", cache->true_location); | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| weight_final /= total_hit_loops; | weight_final /= total_hit_loops; | ||||
| /* Only paint visable verts */ | /* Only paint visible verts */ | ||||
| do_weight_paint_vertex( | do_weight_paint_vertex( | ||||
| data->vp, data->ob, data->wpi, | data->vp, data->ob, data->wpi, | ||||
| v_index, final_alpha, weight_final); | v_index, final_alpha, weight_final); | ||||
| Context not available. | |||||
| * (return OPERATOR_FINISHED also removes handler and operator) | * (return OPERATOR_FINISHED also removes handler and operator) | ||||
| * | * | ||||
| * For future: | * For future: | ||||
| * - implement a stroke event (or mousemove with past positons) | * - implement a stroke event (or mousemove with past positions) | ||||
| * - revise whether op->customdata should be added in object, in set_vpaint | * - revise whether op->customdata should be added in object, in set_vpaint | ||||
| */ | */ | ||||
| Context not available. | |||||