Morphshape export fix

This commit is contained in:
honfika@gmail.com
2015-03-31 07:53:25 +02:00
parent 0926e1f4dc
commit b220e473d2

View File

@@ -171,8 +171,10 @@ public class SVGMorphShapeExporter extends DefaultSVGMorphShapeExporter {
thickness *= zoom / SWF.unitDivisor;
thicknessEnd *= zoom / SWF.unitDivisor;
path.setAttribute("fill", "none");
path.setAttribute("stroke", color.toHexRGB());
path.appendChild(createAnimateElement("stroke", color.toHexRGB(), colorEnd.toHexRGB()));
if (color != null) {
path.setAttribute("stroke", color.toHexRGB());
path.appendChild(createAnimateElement("stroke", color.toHexRGB(), colorEnd.toHexRGB()));
}
path.setAttribute("stroke-width", Double.toString(thickness == 0 ? 1 : thickness));
path.appendChild(createAnimateElement("stroke-width", thickness, thicknessEnd));