[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2303] trunk/py/scripts/addons: replace tricky unicode chars for basic ascii.
Campbell Barton
ideasman42 at gmail.com
Mon Sep 5 04:04:10 CEST 2011
Revision: 2303
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2303
Author: campbellbarton
Date: 2011-09-05 02:04:07 +0000 (Mon, 05 Sep 2011)
Log Message:
-----------
replace tricky unicode chars for basic ascii.
Modified Paths:
--------------
trunk/py/scripts/addons/mocap/__init__.py
trunk/py/scripts/addons/mocap/mocap_tools.py
trunk/py/scripts/addons/object_fracture/fracture_ops.py
trunk/py/scripts/addons/render_povray/render.py
trunk/py/scripts/addons/render_povray/ui.py
trunk/py/scripts/addons/render_povray/update_files.py
Modified: trunk/py/scripts/addons/mocap/__init__.py
===================================================================
--- trunk/py/scripts/addons/mocap/__init__.py 2011-09-04 18:54:27 UTC (rev 2302)
+++ trunk/py/scripts/addons/mocap/__init__.py 2011-09-05 02:04:07 UTC (rev 2303)
@@ -239,6 +239,8 @@
updateIKRetarget()
+
+
def hasIKConstraint(pose_bone):
#utility function / predicate, returns True if given bone has IK constraint
ik = [constraint for constraint in pose_bone.constraints if constraint.type == "IK"]
Modified: trunk/py/scripts/addons/mocap/mocap_tools.py
===================================================================
--- trunk/py/scripts/addons/mocap/mocap_tools.py 2011-09-04 18:54:27 UTC (rev 2302)
+++ trunk/py/scripts/addons/mocap/mocap_tools.py 2011-09-05 02:04:07 UTC (rev 2303)
@@ -47,7 +47,6 @@
# int/float
return NdVector([otherMember * x for x in self.vec])
-
def __sub__(self, otherVec):
a = self.vec
b = otherVec.vec
Modified: trunk/py/scripts/addons/object_fracture/fracture_ops.py
===================================================================
--- trunk/py/scripts/addons/object_fracture/fracture_ops.py 2011-09-04 18:54:27 UTC (rev 2302)
+++ trunk/py/scripts/addons/object_fracture/fracture_ops.py 2011-09-05 02:04:07 UTC (rev 2303)
@@ -224,7 +224,7 @@
# This checks whether returned shards are non-manifold.
# Problem is, if org mesh is non-manifold, it will always fail (e.g. with Suzanne).
- # And disabling it does not seem to cause any problem…
+ # And disabling it does not seem to cause any problem...
# elif min(mesh_utils.edge_face_count(nmesh)) < 2: # Manifold check
# fault = 1
Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py 2011-09-04 18:54:27 UTC (rev 2302)
+++ trunk/py/scripts/addons/render_povray/render.py 2011-09-05 02:04:07 UTC (rev 2303)
@@ -777,11 +777,11 @@
# return True
# return False
# For objects using local material(s) only!
- # This is a mapping between a tuple (dataname, materialnames, …), and the POV dataname.
+ # This is a mapping between a tuple (dataname, materialnames, ...), and the POV dataname.
# As only objects using:
# * The same data.
# * EXACTLY the same materials, in EXACTLY the same sockets.
- # … can share a same instance in POV export.
+ # ... can share a same instance in POV export.
obmats2data = {}
def checkObjectMaterials(ob, name, dataname):
@@ -794,14 +794,14 @@
if ms.link == 'OBJECT' and not has_local_mats:
has_local_mats = True
else:
- # Even if the slot is empty, it is important to grab it…
+ # Even if the slot is empty, it is important to grab it...
key.append("")
if has_local_mats:
# If this object uses local material(s), lets find if another object
# using the same data and exactly the same list of materials
- # (in the same slots) has already been processed…
+ # (in the same slots) has already been processed...
# Note that here also, we use object name as new, unique dataname for Pov.
- key = tuple(key) # Lists are not hashable…
+ key = tuple(key) # Lists are not hashable...
if key not in obmats2data:
obmats2data[key] = name
return obmats2data[key]
Modified: trunk/py/scripts/addons/render_povray/ui.py
===================================================================
--- trunk/py/scripts/addons/render_povray/ui.py 2011-09-04 18:54:27 UTC (rev 2302)
+++ trunk/py/scripts/addons/render_povray/ui.py 2011-09-05 02:04:07 UTC (rev 2303)
@@ -192,6 +192,7 @@
split.prop(scene.pov, "indentation_character", text="Indent")
if scene.pov.indentation_character == "2":
split.prop(scene.pov, "indentation_spaces", text="Spaces")
+
row = layout.row()
row.prop(scene.pov, "comments_enable", text="Comments")
Modified: trunk/py/scripts/addons/render_povray/update_files.py
===================================================================
--- trunk/py/scripts/addons/render_povray/update_files.py 2011-09-04 18:54:27 UTC (rev 2302)
+++ trunk/py/scripts/addons/render_povray/update_files.py 2011-09-05 02:04:07 UTC (rev 2303)
@@ -28,8 +28,8 @@
# Temporally register old props, so we can access their values.
register()
- # Mapping old names → old default values
- # XXX We could also store the new name, but as it is just the same without leading pov_ …
+ # Mapping old names -> old default values
+ # XXX We could also store the new name, but as it is just the same without leading pov_ ...
# Get default values of pov scene props.
old_sce_props = {}
for k in ["pov_tempfiles_enable", "pov_deletefiles_enable", "pov_scene_name", "pov_scene_path",
@@ -81,7 +81,7 @@
################################################################################################
# Now, update !
# For each old pov property of each scene, if its value is not equal to the default one,
- # copy it to relevant new prop…
+ # copy it to relevant new prop...
for sce in bpy.data.scenes:
for k, d in old_sce_props.items():
val = getattr(sce, k, d)
More information about the Bf-extensions-cvs
mailing list