Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_fill.c
| Show First 20 Lines • Show All 1,278 Lines • ▼ Show 20 Lines | static void gpencil_stroke_from_buffer(tGPDfill *tgpf) | ||||
| } | } | ||||
| /* if parented change position relative to parent object */ | /* if parented change position relative to parent object */ | ||||
| for (int a = 0; a < tgpf->sbuffer_used; a++) { | for (int a = 0; a < tgpf->sbuffer_used; a++) { | ||||
| pt = &gps->points[a]; | pt = &gps->points[a]; | ||||
| gpencil_apply_parent_point(tgpf->depsgraph, tgpf->ob, tgpf->gpl, pt); | gpencil_apply_parent_point(tgpf->depsgraph, tgpf->ob, tgpf->gpl, pt); | ||||
| } | } | ||||
| /* if camera view, reproject flat to view to avoid perspective effect */ | /* If camera view or view projection, reproject flat to view to avoid perspective effect. */ | ||||
| if (is_camera) { | if ((*p->align_flag & GP_PROJECT_VIEWSPACE) || is_camera) { | ||||
| ED_gpencil_project_stroke_to_view(tgpf->C, tgpf->gpl, gps); | ED_gpencil_project_stroke_to_view(tgpf->C, tgpf->gpl, gps); | ||||
| } | } | ||||
| /* simplify stroke */ | /* simplify stroke */ | ||||
| for (int b = 0; b < tgpf->fill_simplylvl; b++) { | for (int b = 0; b < tgpf->fill_simplylvl; b++) { | ||||
| BKE_gpencil_stroke_simplify_fixed(tgpf->gpd, gps); | BKE_gpencil_stroke_simplify_fixed(tgpf->gpd, gps); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines | |||||