Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-22 13:29:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-22 13:29:33 +0400
commitcf3881371a5c64d56f352cf09395f93072889a7c (patch)
tree35325e4865f1371d544d3617fbeee47cd4867f73
parente8b28e4d5ad91500e201e014465a03c5ba2b6261 (diff)
pep8 edits
-rw-r--r--add_curve_ivygen.py3
-rw-r--r--io_export_unreal_psk_psa.py2
-rw-r--r--io_scene_x3d/export_x3d.py30
-rw-r--r--light_field_tools/light_field_tools.py2
-rw-r--r--modules/geometry_utils.py6
-rw-r--r--object_grease_scatter.py2
6 files changed, 22 insertions, 23 deletions
diff --git a/add_curve_ivygen.py b/add_curve_ivygen.py
index 5d09d110..3113fd8b 100644
--- a/add_curve_ivygen.py
+++ b/add_curve_ivygen.py
@@ -605,7 +605,6 @@ class IvyGen(bpy.types.Operator):
return {'FINISHED'}
-
def draw(self, context):
layout = self.layout
row = layout.row()
@@ -695,4 +694,4 @@ def unregister():
if __name__ == "__main__":
- register() \ No newline at end of file
+ register()
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 4363fc85..a49565ae 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -1658,7 +1658,7 @@ def fs_callback(filename, context):
bmesh = False
bArmatureScale = True
bArmatureCenter = True
- if blender_armature[0] !=None:
+ if blender_armature[0] is not None:
if blender_armature[0].scale.x == 1 and blender_armature[0].scale.y == 1 and blender_armature[0].scale.z == 1:
#print("Okay")
bArmatureScale = True
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 6f528ebb..1b8863a3 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -96,8 +96,8 @@ def clean_def(str):
# no digit start
if str[0] in "1234567890+-":
str = "_" + str
- return str.translate({# control characters 0x0-0x1f
- # 0x00: "_",
+ return str.translate({ # control characters 0x0-0x1f
+ # 0x00: "_",
0x01: "_",
0x02: "_",
0x03: "_",
@@ -130,19 +130,19 @@ def clean_def(str):
0x1e: "_",
0x1f: "_",
- 0x7f: "_", # 127
-
- 0x20: "_", # space
- 0x22: "_", # "
- 0x27: "_", # '
- 0x23: "_", # #
- 0x2c: "_", # ,
- 0x2e: "_", # .
- 0x5b: "_", # [
- 0x5d: "_", # ]
- 0x5c: "_", # \
- 0x7b: "_", # {
- 0x7d: "_", # }
+ 0x7f: "_", # 127
+
+ 0x20: "_", # space
+ 0x22: "_", # "
+ 0x27: "_", # '
+ 0x23: "_", # #
+ 0x2c: "_", # ,
+ 0x2e: "_", # .
+ 0x5b: "_", # [
+ 0x5d: "_", # ]
+ 0x5c: "_", # \
+ 0x7b: "_", # {
+ 0x7d: "_", # }
})
diff --git a/light_field_tools/light_field_tools.py b/light_field_tools/light_field_tools.py
index 85b10298..2251591b 100644
--- a/light_field_tools/light_field_tools.py
+++ b/light_field_tools/light_field_tools.py
@@ -336,7 +336,7 @@ class OBJECT_OT_create_lightfield_basemesh(bpy.types.Operator):
scene.objects.link(nobj)
nobj.select = True
- if scene.objects.active == None or scene.objects.active.mode == 'OBJECT':
+ if scene.objects.active is None or scene.objects.active.mode == 'OBJECT':
scene.objects.active = nobj
diff --git a/modules/geometry_utils.py b/modules/geometry_utils.py
index 8fd0e00e..413c24b8 100644
--- a/modules/geometry_utils.py
+++ b/modules/geometry_utils.py
@@ -136,7 +136,7 @@ class G3:
def closestP2CylinderAxis(cls, p, fv):
n = G3.ThreePnormal(fv)
c = G3.circumCenter(fv)
- if(c==None):
+ if c is None:
return None
return G3.closestP2L(p, c, c+n)
@@ -163,7 +163,7 @@ class G3:
#print ("G3.closestP2Sphere")
try:
c = G3.centerOfSphere(fv)
- if c==None:
+ if c is None:
return None
pc = p-c
if pc.length == 0:
@@ -178,7 +178,7 @@ class G3:
def closestP2Cylinder(cls, p, fv):
#print ("G3.closestP2Sphere")
c = G3.closestP2CylinderAxis(p, fv)
- if c==None:
+ if c is None:
return None
r = (fv[0] - G3.centerOfSphere(fv)).length
pc = p-c
diff --git a/object_grease_scatter.py b/object_grease_scatter.py
index 01a2afd3..7bacbefd 100644
--- a/object_grease_scatter.py
+++ b/object_grease_scatter.py
@@ -375,7 +375,7 @@ class Scatter(bpy.types.Operator):
)
# XXX, should not be a string - TODO, add a way for scritps to select ID's
group = StringProperty(
- name="Group",
+ name="Group",
description=("Group name to use for object placement, "
"defaults to object name when that matches a group"))