Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_fill.c
| Show First 20 Lines • Show All 1,146 Lines • ▼ Show 20 Lines | gp_stroke_convertcoords_tpoint(tgpf->scene, | ||||
| tgpf->depth_arr ? tgpf->depth_arr + i : NULL, | tgpf->depth_arr ? tgpf->depth_arr + i : NULL, | ||||
| &pt->x); | &pt->x); | ||||
| pt->pressure = 1.0f; | pt->pressure = 1.0f; | ||||
| pt->strength = 1.0f; | pt->strength = 1.0f; | ||||
| pt->time = 0.0f; | pt->time = 0.0f; | ||||
| /* Apply the vertex color to point. */ | /* Apply the vertex color to point. */ | ||||
| ED_gpencil_point_vertex_color_set(ts, brush, pt); | ED_gpencil_point_vertex_color_set(ts, brush, pt, NULL); | ||||
| if ((ts->gpencil_flags & GP_TOOL_FLAG_CREATE_WEIGHTS) && (have_weight)) { | if ((ts->gpencil_flags & GP_TOOL_FLAG_CREATE_WEIGHTS) && (have_weight)) { | ||||
| MDeformWeight *dw = BKE_defvert_ensure_index(dvert, def_nr); | MDeformWeight *dw = BKE_defvert_ensure_index(dvert, def_nr); | ||||
| if (dw) { | if (dw) { | ||||
| dw->weight = ts->vgroup_weight; | dw->weight = ts->vgroup_weight; | ||||
| } | } | ||||
| dvert++; | dvert++; | ||||
| ▲ Show 20 Lines • Show All 447 Lines • Show Last 20 Lines | |||||