Merge branch 'blender-v4.3-release'

This commit is contained in:
Falk David
2024-11-12 14:45:19 +01:00

View File

@@ -504,7 +504,8 @@ static GPENCIL_tObject *grease_pencil_object_cache_populate(GPENCIL_PrivateData
OB_MODE_PAINT_GREASE_PENCIL,
OB_MODE_WEIGHT_GREASE_PENCIL,
OB_MODE_VERTEX_GREASE_PENCIL) &&
info.frame_number != pd->cfra && pd->use_multiedit_lines_only;
info.frame_number != pd->cfra && pd->use_multiedit_lines_only &&
do_multi_frame;
const bool is_onion = info.onion_id != 0;
visible_strokes.foreach_index([&](const int stroke_i, const int pos) {
@@ -523,7 +524,7 @@ static GPENCIL_tObject *grease_pencil_object_cache_populate(GPENCIL_PrivateData
const bool hide_onion = is_onion && ((gp_style->flag & GP_MATERIAL_HIDE_ONIONSKIN) != 0 ||
(!do_onion && !do_multi_frame));
const bool skip_stroke = hide_material || (!show_stroke && !show_fill) ||
(only_lines && !is_onion) || hide_onion;
(only_lines && !do_onion && is_onion) || hide_onion;
if (skip_stroke) {
t_offset += num_triangles_per_stroke[pos];