Page MenuHome

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

Description

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:

rect_red_g.svg:
This line for a red fill appear in both files, and it is apparently ignored by the SVG importer.
<g ...
fill="#ff0000"

rect_red_style.svg:
This line for a red fill appears in the 2nd file and is recognized by the SVG importer.
<path ...
style="fill:#ff0000;fill-opacity:1"

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

Details

Type
Bug

Event Timeline

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.

Also,
build: official 2.62
os: win7 32

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

Sergey Sharybin (sergey) closed this task as Resolved.Apr 23 2012, 5:28 PM