diff --git a/mocap/__init__.py b/mocap/__init__.py index b56bb342feec33c54b7ff0f5666437f1196e2484..99a9d4a89b628ce3c3f5dc8e19793c308b69b3e6 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -239,6 +239,8 @@ def updateIKRetarget(): 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"] diff --git a/mocap/mocap_tools.py b/mocap/mocap_tools.py index 5871c376e38da268c195d39d27a59aed39df10cc..0bbc09d04abf483e87eba7d2195458125c283b86 100644 --- a/mocap/mocap_tools.py +++ b/mocap/mocap_tools.py @@ -47,7 +47,6 @@ class NdVector: # int/float return NdVector([otherMember * x for x in self.vec]) - def __sub__(self, otherVec): a = self.vec b = otherVec.vec diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py index f5de1d972a7e6075d2b114070f1bf26ec42df89d..ba8585894df405f42cf25ecd43df027a1180a936 100644 --- a/object_fracture/fracture_ops.py +++ b/object_fracture/fracture_ops.py @@ -224,7 +224,7 @@ def boolop(ob, cutter, op): # 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 diff --git a/render_povray/render.py b/render_povray/render.py index 6260a07716203a075562b3281415edd10277ab8c..d5390261d1cfd614e5f44d0089735e16e6be128d 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -777,11 +777,11 @@ def write_pov(filename, scene=None, info_callback=None): # 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 @@ def write_pov(filename, scene=None, info_callback=None): 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] diff --git a/render_povray/ui.py b/render_povray/ui.py index 3309c02f9639edfa812086f91b563cc32034e78d..95416c7eff782f40a1b479952db58c9fbe728261 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -192,6 +192,7 @@ class RENDER_PT_povray_export_settings(RenderButtonsPanel, bpy.types.Panel): 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") diff --git a/render_povray/update_files.py b/render_povray/update_files.py index 2d8cf6fbdf0ce029b533c58086ca53b570ed1667..7aa3cff8992afb1be11327a4c15debb6a0c19360 100644 --- a/render_povray/update_files.py +++ b/render_povray/update_files.py @@ -28,8 +28,8 @@ def update2_0_0_9(): # 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 @@ def update2_0_0_9(): ################################################################################################ # 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)