Fix #142377: Grease Pencil SVG Exporter objects disabled in render

This adds a check to ensure that objects disable in the render
don't show up in exported SVGs.

4.5 Backport candidate.

Pull Request: https://projects.blender.org/blender/blender/pulls/147332
This commit is contained in:
Casey Bianco-Davis
2025-10-06 18:43:23 +02:00
committed by casey-bianco-davis
parent 72f098248d
commit fff2b76645

View File

@@ -351,7 +351,9 @@ Vector<GreasePencilExporter::ObjectInfo> GreasePencilExporter::retrieve_objects(
break;
case SelectMode::Visible:
LISTBASE_FOREACH (Base *, base, BKE_view_layer_object_bases_get(view_layer)) {
add_object(base->object);
if ((base->flag & BASE_ENABLED_RENDER) != 0) {
add_object(base->object);
}
}
break;
}