Revision: 14603
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14603
Author:   campbellbarton
Date:     2008-04-28 21:13:38 +0200 (Mon, 28 Apr 2008)

Log Message:
-----------
fix for [#9649] svg2obj.py needs a patch,
slight change to the fix suggested, the svg imported was assuming that
"fill:" and "#" being in a string meant there was "fill:#", but the # could be 
used for other properties.

Modified Paths:
--------------
    trunk/blender/release/scripts/bpymodules/paths_svg2obj.py

Modified: trunk/blender/release/scripts/bpymodules/paths_svg2obj.py
===================================================================
--- trunk/blender/release/scripts/bpymodules/paths_svg2obj.py   2008-04-28 
17:14:56 UTC (rev 14602)
+++ trunk/blender/release/scripts/bpymodules/paths_svg2obj.py   2008-04-28 
19:13:38 UTC (rev 14603)
@@ -1309,8 +1309,9 @@
                        if not 'fill:none' in pr:
                                Courbe[n].fill=1
                                if USE_COLORS:
-                                       if '#' in pr:
-                                               i= pr.find('fill:#')+6
+                                       i= pr.find('fill:#')
+                                       if i != -1:
+                                               i= i+6
                                                
Courbe[n].color=[int(pr[i:i+2],16),int(pr[i+2:i+4],16),int(pr[i+4:i+6],16)]
                                                Courbe[n].mat=1
                                        elif ';fill-opacity' in pr: 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to