just for fun, I put a tracer into the Python code to see if both layers are actually being processed. The code contains a branch depending on whether this is the first layer or a subsequent layer.
if previous != None:
inkex.errormsg("add new = " + name)
template.getroot().replace(previous, layer)
else:
inkex.errormsg("add org = " + name)
template.getroot().append(layer)
The tracer indicated that both branches were executed and that both layers were encountered, but apparently the second layer was subsequently lost somewhere.
just for fun, I put a tracer into the Python code to see if both layers are actually being processed. The code contains a branch depending on whether this is the first layer or a subsequent layer.
if previous != None: errormsg( "add new = " + name) getroot( ).replace( previous, layer) errormsg( "add org = " + name) getroot( ).append( layer)
inkex.
template.
else:
inkex.
template.
The tracer indicated that both branches were executed and that both layers were encountered, but apparently the second layer was subsequently lost somewhere.