Page MenuHome

SVG importer ignores fill color <g fill="#ff0000" ...>
Closed, ResolvedPublic


Both SVG files here are a red rectangle when loaded in Inkscape or Internet Explorer. But in Blender, the first file appears as black instead of red.
Steps to recreate: Import both files into Blender as SVG paths.

File contents:

This line for a red fill appear in both files, and it is apparently ignored by the SVG importer.
<g ...

This line for a red fill appears in the 2nd file and is recognized by the SVG importer.
<path ...

Can the importer be fixed to recognize <g fill="#ff0000" ...> ?

Event Timeline

ukurere edited a custom field.Apr 22 2012, 12:45 AM
ukurere attached 1 file(s): F17887: rect_red_g.svg.
ukurere attached 1 file(s): F17888: rect_red_style.svg.

Sorry, the attached file order got messed up. rect_red_g.svg appears as black when imported, rect_red_style.svg appears as red.

build: official 2.62
os: win7 32

Fixed in svn rev3299 of addons repo.
Thanks for the report, closing.

Sergey Sharybin (sergey) changed the task status from Unknown Status to Resolved.Apr 23 2012, 5:28 PM