Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
| Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd_eval->layers) { | ||||
| const bool is_fill = ((gp_style->flag & GP_MATERIAL_FILL_SHOW) && | const bool is_fill = ((gp_style->flag & GP_MATERIAL_FILL_SHOW) && | ||||
| (gp_style->fill_rgba[3] > GPENCIL_ALPHA_OPACITY_THRESH)); | (gp_style->fill_rgba[3] > GPENCIL_ALPHA_OPACITY_THRESH)); | ||||
| prepare_stroke_export_colors(ob, gps_duplicate); | prepare_stroke_export_colors(ob, gps_duplicate); | ||||
| /* 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); | ||||
| const bool is_normalized = ((params_.flag & GP_EXPORT_NORM_THICKNESS) != 0) || | const bool is_normalized = ((params_.flag & GP_EXPORT_NORM_THICKNESS) != 0) || | ||||
| BKE_gpencil_stroke_is_pressure_constant(gps); | BKE_gpencil_stroke_is_pressure_constant(gps); | ||||
| /* Fill. */ | /* Fill. */ | ||||
| if ((is_fill) && (params_.flag & GP_EXPORT_FILL)) { | if ((is_fill) && (params_.flag & GP_EXPORT_FILL)) { | ||||
| /* Fill is always exported as polygon because the stroke of the fill is done | /* Fill is always exported as polygon because the stroke of the fill is done | ||||
| ▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines | |||||