Fix #126707: SVG export nodes wrong hierarchy ignores clipping

SVG was exported with all the paths in the base node, which breaks the
`clipPath` reference.

Pull Request: https://projects.blender.org/blender/blender/pulls/127355
This commit is contained in:
Lukas Tönne
2024-09-09 18:42:20 +02:00
parent ad7d7212c1
commit 8aead3a6d9

View File

@@ -200,9 +200,9 @@ void SVGExporter::export_grease_pencil_objects(pugi::xml_node node, const int fr
/* Layer node. */
const std::string txt = "Layer: " + layer->name();
node.append_child(pugi::node_comment).set_value(txt.c_str());
ob_node.append_child(pugi::node_comment).set_value(txt.c_str());
pugi::xml_node layer_node = node.append_child("g");
pugi::xml_node layer_node = ob_node.append_child("g");
layer_node.append_attribute("id").set_value(layer->name().c_str());
export_grease_pencil_layer(layer_node, *ob_eval, *layer, *drawing);