[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3835] trunk/py/scripts/addons: style cleanup: pep8
Campbell Barton
ideasman42 at gmail.com
Mon Oct 8 22:50:06 CEST 2012
Revision: 3835
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3835
Author: campbellbarton
Date: 2012-10-08 20:50:06 +0000 (Mon, 08 Oct 2012)
Log Message:
-----------
style cleanup: pep8
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_3ds/import_3ds.py
trunk/py/scripts/addons/io_scene_x3d/import_x3d.py
trunk/py/scripts/addons/render_povray/render.py
trunk/py/scripts/addons/render_povray/ui.py
trunk/py/scripts/addons/rigify/rigs/biped/arm/ik.py
trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py
trunk/py/scripts/addons/rigify/rigs/biped/leg/fk.py
trunk/py/scripts/addons/rigify/rigs/biped/leg/ik.py
trunk/py/scripts/addons/rigify/rigs/finger.py
trunk/py/scripts/addons/rigify/rigs/misc/delta.py
trunk/py/scripts/addons/system_demo_mode/demo_mode.py
trunk/py/scripts/addons/system_property_chart.py
Modified: trunk/py/scripts/addons/io_scene_3ds/import_3ds.py
===================================================================
--- trunk/py/scripts/addons/io_scene_3ds/import_3ds.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/io_scene_3ds/import_3ds.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -477,7 +477,6 @@
## preparando para receber o proximo objeto
contextMeshMaterials = [] # matname:[face_idxs]
contextMeshUV = None
- #contextMesh.vertexUV = 1 # Make sticky coords.
# Reset matrix
contextMatrix_rot = None
#contextMatrix_tx = None
Modified: trunk/py/scripts/addons/io_scene_x3d/import_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/import_x3d.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/io_scene_x3d/import_x3d.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -85,7 +85,7 @@
q = not q # invert
elif c == '#':
- if q == False:
+ if q is False:
return l[:i - 1]
return l
@@ -2608,7 +2608,7 @@
node.blendObject.animation_data.action = action
# Add in hierarchy
- if PREF_FLAT == False:
+ if PREF_FLAT is False:
child_dict = {}
for node, ancestry in all_nodes:
if node.blendObject:
Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/render_povray/render.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -822,7 +822,7 @@
# Export Hair
- if hasattr(ob, 'particle_systems') != False:
+ if hasattr(ob, 'particle_systems'):
for pSys in ob.particle_systems:
if not pSys.settings.use_render_emitter:
continue #don't render mesh
Modified: trunk/py/scripts/addons/render_povray/ui.py
===================================================================
--- trunk/py/scripts/addons/render_povray/ui.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/render_povray/ui.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -102,7 +102,7 @@
@classmethod
def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class MaterialButtonsPanel():
@@ -115,7 +115,7 @@
def poll(cls, context):
mat = context.material
rd = context.scene.render
- return mat and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return mat and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class TextureButtonsPanel():
@@ -128,7 +128,7 @@
def poll(cls, context):
tex = context.texture
rd = context.scene.render
- return tex and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return tex and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class ObjectButtonsPanel():
@@ -141,7 +141,7 @@
def poll(cls, context):
obj = context.object
rd = context.scene.render
- return obj and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return obj and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class CameraDataButtonsPanel():
@@ -154,7 +154,7 @@
def poll(cls, context):
cam = context.camera
rd = context.scene.render
- return cam and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return cam and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class TextButtonsPanel():
@@ -167,7 +167,7 @@
def poll(cls, context):
text = context.space_data
rd = context.scene.render
- return text and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
+ return text and (rd.use_game_engine is False) and (rd.engine in cls.COMPAT_ENGINES)
class RENDER_PT_povray_export_settings(RenderButtonsPanel, bpy.types.Panel):
Modified: trunk/py/scripts/addons/rigify/rigs/biped/arm/ik.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/biped/arm/ik.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/rigify/rigs/biped/arm/ik.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -195,7 +195,7 @@
pole_p.lock_scale = True, True, True
# Set up custom properties
- if self.switch == True:
+ if self.switch is True:
prop = rna_idprop_ui_prop_get(hand_p, "ikfk_switch", create=True)
hand_p["ikfk_switch"] = 0.0
prop["soft_min"] = prop["min"] = 0.0
@@ -246,7 +246,7 @@
con.name = "ik"
con.target = self.obj
con.subtarget = uarm
- if self.switch == True:
+ if self.switch is True:
# IK/FK switch driver
fcurve = con.driver_add("influence")
driver = fcurve.driver
@@ -261,7 +261,7 @@
con.name = "ik"
con.target = self.obj
con.subtarget = farm
- if self.switch == True:
+ if self.switch is True:
# IK/FK switch driver
fcurve = con.driver_add("influence")
driver = fcurve.driver
@@ -276,7 +276,7 @@
con.name = "ik"
con.target = self.obj
con.subtarget = hand
- if self.switch == True:
+ if self.switch is True:
# IK/FK switch driver
fcurve = con.driver_add("influence")
driver = fcurve.driver
Modified: trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -95,7 +95,7 @@
foot = None
heel = None
for b in self.obj.data.bones[leg_bones[1]].children:
- if b.use_connect == True:
+ if b.use_connect is True:
if len(b.children) >= 1 and has_connected_children(b):
foot = b.name
else:
@@ -108,7 +108,7 @@
# Get the toe
toe = None
for b in self.obj.data.bones[foot].children:
- if b.use_connect == True:
+ if b.use_connect is True:
toe = b.name
if toe is None:
Modified: trunk/py/scripts/addons/rigify/rigs/biped/leg/fk.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/biped/leg/fk.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/rigify/rigs/biped/leg/fk.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -54,7 +54,7 @@
foot = None
heel = None
for b in self.obj.data.bones[leg_bones[1]].children:
- if b.use_connect == True:
+ if b.use_connect is True:
if len(b.children) >= 1 and has_connected_children(b):
foot = b.name
else:
@@ -66,7 +66,7 @@
# Get the toe
toe = None
for b in self.obj.data.bones[foot].children:
- if b.use_connect == True:
+ if b.use_connect is True:
toe = b.name
# Get the toe
Modified: trunk/py/scripts/addons/rigify/rigs/biped/leg/ik.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/biped/leg/ik.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/rigify/rigs/biped/leg/ik.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -105,7 +105,7 @@
heel = None
rocker = None
for b in self.obj.data.bones[leg_bones[1]].children:
- if b.use_connect == True:
+ if b.use_connect is True:
if len(b.children) >= 1 and has_connected_children(b):
foot = b.name
else:
@@ -120,7 +120,7 @@
# Get the toe
toe = None
for b in self.obj.data.bones[foot].children:
- if b.use_connect == True:
+ if b.use_connect is True:
toe = b.name
# Get toe
@@ -373,7 +373,7 @@
pole_p.lock_scale = True, True, True
# Set up custom properties
- if self.switch == True:
+ if self.switch is True:
prop = rna_idprop_ui_prop_get(foot_p, "ikfk_switch", create=True)
foot_p["ikfk_switch"] = 0.0
prop["soft_min"] = prop["min"] = 0.0
@@ -495,7 +495,7 @@
con.name = "ik"
con.target = self.obj
con.subtarget = thigh
- if self.switch == True:
+ if self.switch is True:
# IK/FK switch driver
fcurve = con.driver_add("influence")
driver = fcurve.driver
@@ -510,7 +510,7 @@
con.name = "ik"
con.target = self.obj
con.subtarget = shin
- if self.switch == True:
+ if self.switch is True:
# IK/FK switch driver
fcurve = con.driver_add("influence")
driver = fcurve.driver
@@ -525,7 +525,7 @@
con.name = "ik"
con.target = self.obj
con.subtarget = foot_ik_target
- if self.switch == True:
+ if self.switch is True:
# IK/FK switch driver
fcurve = con.driver_add("influence")
driver = fcurve.driver
Modified: trunk/py/scripts/addons/rigify/rigs/finger.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/finger.py 2012-10-08 20:48:29 UTC (rev 3834)
+++ trunk/py/scripts/addons/rigify/rigs/finger.py 2012-10-08 20:50:06 UTC (rev 3835)
@@ -171,7 +171,7 @@
for bone in bones[1:]:
pb[bone].lock_location = True, True, True
- if pb[self.org_bones[0]].bone.use_connect == True:
+ if pb[self.org_bones[0]].bone.use_connect is True:
pb[bones[0]].lock_location = True, True, True
pb[ctrl].lock_scale = True, False, True
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list