[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3805] trunk/py/scripts/addons/ render_povray/render.py: Fix encoding error ( please be carful with this - even though using non-ascii chars in code/ comments is not a good idea, my bad).

Bastien Montagne montagne29 at wanadoo.fr
Tue Oct 2 07:13:54 CEST 2012


Revision: 3805
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3805
Author:   mont29
Date:     2012-10-02 05:13:54 +0000 (Tue, 02 Oct 2012)
Log Message:
-----------
Fix encoding error (please be carful with this - even though using non-ascii chars in code/comments is not a good idea, my bad). Thanks Irie Shinsuke for the report!

Modified Paths:
--------------
    trunk/py/scripts/addons/render_povray/render.py

Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py	2012-10-02 01:47:12 UTC (rev 3804)
+++ trunk/py/scripts/addons/render_povray/render.py	2012-10-02 05:13:54 UTC (rev 3805)
@@ -1,20 +1,20 @@
- # ***** BEGIN GPL LICENSE BLOCK *****
- #
- # This program is free software; you can redistribute it and/or
- # modify it under the terms of the GNU General Public License
- # as published by the Free Software Foundation; either version 2
- # of the License, or (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software Foundation,
- # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- #
- # #**** END GPL LICENSE BLOCK #****
+# ***** BEGIN GPL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# #**** END GPL LICENSE BLOCK #****
 
 # <pep8 compliant>
 
@@ -751,7 +751,7 @@
 #                for ms in ob.material_slots:
 #                    if ms.material != None and ms.link == 'OBJECT':
 #                        # If there is at least one material slot linked to the object
-#                        # and not the data (mesh), always create a new, \x93private\x94 data instance.
+#                        # and not the data (mesh), always create a new, "private" data instance.
 #                        return True
 #            return False
         # For objects using local material(s) only!
@@ -790,7 +790,7 @@
         def store(scene, ob, name, dataname, matrix):
             # The Object needs to be written at least once but if its data is
             # already in data_ref this has already been done.
-            # This func returns the \x93povray\x94 name of the data, or None
+            # This func returns the "povray" name of the data, or None
             # if no writing is needed.
             if ob.is_modified(scene, 'RENDER'):
                 # Data modified.
@@ -816,7 +816,7 @@
             ob_num += 1
 
             # XXX I moved all those checks here, as there is no need to compute names
-            #     for object we won\x92t export here!
+            #     for object we won't export here!
             if ob.type in {'LAMP', 'CAMERA', 'EMPTY', 'META', 'ARMATURE', 'LATTICE'}:
                 continue
                    
@@ -969,7 +969,7 @@
 #############################################
             # Generating a name for object just like materials to be able to use it
             # (baking for now or anything else).
-            # XXX I don\x92t understand that \x96\xA0if we are here, sel if a non-empty iterable,
+            # XXX I don't understand that: if we are here, sel if a non-empty iterable,
             #     so this condition is always True, IMO -- mont29
             if sel:
                 name_orig = "OB" + ob.name



More information about the Bf-extensions-cvs mailing list