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:
committed by
casey-bianco-davis
parent
72f098248d
commit
fff2b76645
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user