Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
| Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd_eval->layers) { | ||||
| } | } | ||||
| /* Duplicate the stroke to apply any layer thickness change. */ | /* Duplicate the stroke to apply any layer thickness change. */ | ||||
| bGPDstroke *gps_duplicate = BKE_gpencil_stroke_duplicate(gps, true, false); | bGPDstroke *gps_duplicate = BKE_gpencil_stroke_duplicate(gps, true, false); | ||||
| /* Apply layer thickness change. */ | /* Apply layer thickness change. */ | ||||
| gps_duplicate->thickness += gpl->line_change; | gps_duplicate->thickness += gpl->line_change; | ||||
| /* Apply object scale to thickness. */ | /* Apply object scale to thickness. */ | ||||
| gps_duplicate->thickness *= mat4_to_scale(ob->obmat); | gps_duplicate->thickness *= mat4_to_scale(ob->object_to_world); | ||||
| CLAMP_MIN(gps_duplicate->thickness, 1.0f); | CLAMP_MIN(gps_duplicate->thickness, 1.0f); | ||||
| /* Fill. */ | /* Fill. */ | ||||
| if ((is_fill) && (params_.flag & GP_EXPORT_FILL)) { | if ((is_fill) && (params_.flag & GP_EXPORT_FILL)) { | ||||
| /* Fill is exported as polygon for fill and stroke in a different shape. */ | /* Fill is exported as polygon for fill and stroke in a different shape. */ | ||||
| export_stroke_to_polyline(gpl, gps_duplicate, is_stroke, true, false); | export_stroke_to_polyline(gpl, gps_duplicate, is_stroke, true, false); | ||||
| } | } | ||||
| /* Stroke. */ | /* Stroke. */ | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||