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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-10 14:45:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-10 14:45:56 +0400
commit28594bc742e6a1cab95659283394cfee487822c9 (patch)
tree8d9c7f0b7d7302586bcaf517c3d296be79b9a2ee /release/scripts
parent1c6956a4d6b15ddca3588f1838d3b9903e7239af (diff)
minor pep8 edits, also added 'test_pep8' & 'test_cmake' to the GNUmakefile for convenience.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_operators/object_quick_effects.py6
-rw-r--r--release/scripts/startup/bl_ui/space_nla.py2
-rw-r--r--release/scripts/startup/keyingsets_builtins.py11
3 files changed, 10 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_operators/object_quick_effects.py b/release/scripts/startup/bl_operators/object_quick_effects.py
index c3de0a289a3..94074a52cd6 100644
--- a/release/scripts/startup/bl_operators/object_quick_effects.py
+++ b/release/scripts/startup/bl_operators/object_quick_effects.py
@@ -163,7 +163,7 @@ class MakeSmoke(bpy.types.Operator):
# create a volume material with a voxel data texture for the domain
bpy.ops.object.material_slot_add({"object": obj})
- mat = bpy.data.materials.new("Smoke Domain Material");
+ mat = bpy.data.materials.new("Smoke Domain Material")
obj.material_slots[0].material = mat
mat.type = 'VOLUME'
mat.volume.density = 0
@@ -274,8 +274,8 @@ class MakeFluid(bpy.types.Operator):
# create a ray-transparent material for the domain
bpy.ops.object.material_slot_add({"object": obj})
-
- mat = bpy.data.materials.new("Fluid Domain Material");
+
+ mat = bpy.data.materials.new("Fluid Domain Material")
obj.material_slots[0].material = mat
mat.specular_intensity = 1
diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py
index 5c8e8cd9173..717adb3baa8 100644
--- a/release/scripts/startup/bl_ui/space_nla.py
+++ b/release/scripts/startup/bl_ui/space_nla.py
@@ -188,7 +188,7 @@ class NLA_MT_edit_transform(bpy.types.Menu):
layout.column()
layout.operator("transform.translate", text="Grab/Move")
layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND'
- layout.operator("transform.transform", text="Scale").mode= 'TIME_SCALE'
+ layout.operator("transform.transform", text="Scale").mode = 'TIME_SCALE'
if __name__ == "__main__": # only for live edit.
bpy.utils.register_module(__name__)
diff --git a/release/scripts/startup/keyingsets_builtins.py b/release/scripts/startup/keyingsets_builtins.py
index cefc5cf38ed..0775d38c437 100644
--- a/release/scripts/startup/keyingsets_builtins.py
+++ b/release/scripts/startup/keyingsets_builtins.py
@@ -359,10 +359,11 @@ class BUILTIN_KSI_WholeCharacter(bpy.types.KeyingSetInfo):
###############################
+
# Delta Location
class BUILTIN_KSI_DeltaLocation(bpy.types.KeyingSetInfo):
bl_label = "Delta Location"
-
+
# poll - selected objects only (and only if active object in object mode)
poll = keyingsets_utils.RKS_POLL_selected_objects
@@ -387,7 +388,7 @@ class BUILTIN_KSI_DeltaLocation(bpy.types.KeyingSetInfo):
# Delta Rotation
class BUILTIN_KSI_DeltaRotation(bpy.types.KeyingSetInfo):
bl_label = "Delta Rotation"
-
+
# poll - selected objects only (and only if active object in object mode)
poll = keyingsets_utils.RKS_POLL_selected_objects
@@ -406,7 +407,7 @@ class BUILTIN_KSI_DeltaRotation(bpy.types.KeyingSetInfo):
elif data.rotation_mode == 'AXIS_ANGLE':
# XXX: for now, this is not available yet
#path = path_add_property(base_path, "delta_rotation_axis_angle")
- return;
+ return
else:
path = keyingsets_utils.path_add_property(base_path, "delta_rotation_euler")
@@ -415,12 +416,12 @@ class BUILTIN_KSI_DeltaRotation(bpy.types.KeyingSetInfo):
ks.paths.add(id_block, path, group_method='NAMED', group_name=grouping)
else:
ks.paths.add(id_block, path)
-
+
# Delta Scale
class BUILTIN_KSI_DeltaScale(bpy.types.KeyingSetInfo):
bl_label = "Delta Scale"
-
+
# poll - selected objects only (and only if active object in object mode)
poll = keyingsets_utils.RKS_POLL_selected_objects