[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4038] contrib/py/scripts/addons/ online_mat_lib/__init__.py: Forgot to add replace function to applying material.

Peter Cassetta peter at fingertipsoft.com
Wed Dec 12 01:09:11 CET 2012


Revision: 4038
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4038
Author:   petercassetta
Date:     2012-12-12 00:09:08 +0000 (Wed, 12 Dec 2012)
Log Message:
-----------
Forgot to add replace function to applying material.

Modified Paths:
--------------
    contrib/py/scripts/addons/online_mat_lib/__init__.py

Modified: contrib/py/scripts/addons/online_mat_lib/__init__.py
===================================================================
--- contrib/py/scripts/addons/online_mat_lib/__init__.py	2012-12-11 23:42:13 UTC (rev 4037)
+++ contrib/py/scripts/addons/online_mat_lib/__init__.py	2012-12-12 00:09:08 UTC (rev 4038)
@@ -1886,7 +1886,7 @@
         for s in scripts:
             osl_datablock = bpy.data.texts.new(name=s.attributes['name'].value)
             osl_text = s.toxml()[s.toxml().index(">"):s.toxml().rindex("<")]
-            osl_text = osl_text[1:].replace("<br/>","\n")
+            osl_text = osl_text[1:].replace("<br/>","\n").replace("lt;", "<").replace("gt;", ">")
             osl_datablock.write(osl_text)
             osl_scripts.append(osl_datablock)
         



More information about the Bf-extensions-cvs mailing list