style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Tue, 15 Jan 2013 23:15:32 +0000 (23:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 15 Jan 2013 23:15:32 +0000 (23:15 +0000)
32 files changed:
release/scripts/modules/addon_utils.py
release/scripts/modules/bl_i18n_utils/spell_check_utils.py
release/scripts/modules/bpy/path.py
release/scripts/modules/bpy/utils.py
release/scripts/modules/bpy_extras/io_utils.py
release/scripts/modules/bpy_extras/mesh_utils.py
release/scripts/modules/bpy_extras/object_utils.py
release/scripts/modules/bpy_extras/view3d_utils.py
release/scripts/modules/bpy_restrict_state.py
release/scripts/modules/bpy_types.py
release/scripts/startup/bl_operators/node.py
release/scripts/startup/bl_operators/object.py
release/scripts/startup/bl_operators/presets.py
release/scripts/startup/bl_operators/uvcalc_follow_active.py
release/scripts/startup/bl_operators/uvcalc_lightmap.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/__init__.py
release/scripts/startup/bl_ui/properties_data_mesh.py
release/scripts/startup/bl_ui/properties_data_modifier.py
release/scripts/startup/bl_ui/properties_game.py
release/scripts/startup/bl_ui/properties_mask_common.py
release/scripts/startup/bl_ui/properties_object_constraint.py
release/scripts/startup/bl_ui/properties_physics_common.py
release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
release/scripts/startup/bl_ui/properties_physics_smoke.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/space_clip.py
release/scripts/startup/bl_ui/space_dopesheet.py
release/scripts/startup/bl_ui/space_info.py
release/scripts/startup/bl_ui/space_text.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/startup/bl_ui/space_view3d.py

index 65ea91cf8ce8d3bde820db31ced8945d5330403b..02115054396fef1a3ed4ace6886e41ea8a4e2985 100644 (file)
@@ -208,9 +208,9 @@ def check(module_name):
 
     if loaded_state is Ellipsis:
         print("Warning: addon-module %r found module "
-               "but without __addon_enabled__ field, "
-               "possible name collision from file: %r" %
-               (module_name, getattr(mod, "__file__", "<unknown>")))
+              "but without __addon_enabled__ field, "
+              "possible name collision from file: %r" %
+              (module_name, getattr(mod, "__file__", "<unknown>")))
 
         loaded_state = False
 
index 3fd039c743636d5e85210a9b736d750da7bd77cb..aabad116bd9109eb24c3c44a817b64cb0e13bc85 100644 (file)
@@ -37,7 +37,7 @@ dict_uimsgs = {
     "aren",  # aren't
     "betweens",  # yuck! in-betweens!
     "boolean", "booleans",
-    "couldn",  #couldn't
+    "couldn",  # couldn't
     "decrement",
     "derivate",
     "doesn",  # doesn't
index 69ed4314f6f0cb6091e01d92ff0fce8f59d7ea22..6c91568cbc17ef95aafceda0b38b8708aeac3d92 100644 (file)
@@ -47,6 +47,7 @@ from _bpy_path import (extensions_audio,
                        extensions_image,
                        )
 
+
 def abspath(path, start=None, library=None):
     """
     Returns the absolute path relative to the current blend file
index 25fe6c1d4e5d3fa3759d175f61e849be09fe9db8..7b5de231b4b67ab1922a6f60fc79bfbd9849ecfd 100644 (file)
@@ -237,7 +237,8 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
     _addon_utils.reset_all(reload_scripts)
 
     # run the active integration preset
-    filepath = preset_find(_user_preferences.inputs.active_keyconfig, "keyconfig")
+    filepath = preset_find(_user_preferences.inputs.active_keyconfig,
+                           "keyconfig")
 
     if filepath:
         keyconfig_set(filepath)
index 0e9b6c136e961ae77289155809f8751687db86c5..21bad5ec1e4a7e4fdf2bf86f1376b3abd8ca3dfa 100644 (file)
@@ -341,7 +341,7 @@ path_reference_mode = EnumProperty(
                ('COPY', "Copy", "Copy the file to the destination path "
                                 "(or subdirectory)"),
                ),
-        default='AUTO'
+        default='AUTO',
         )
 
 
@@ -480,10 +480,10 @@ def unique_name(key, name, name_dict, name_max=-1, clean_func=None, sep="."):
             while name_new in name_dict_values:
                 count_str = "%03d" % count
                 name_new = "%.*s%s%s" % (name_max - (len(count_str) + 1),
-                                        name_new_orig,
-                                        sep,
-                                        count_str,
-                                        )
+                                         name_new_orig,
+                                         sep,
+                                         count_str,
+                                         )
                 count += 1
 
         name_dict[key] = name_new
index 0166f954dc9e0b97ee91b9f9f52ee8747070de36..8b93b5922e961f9d30520e119c50f45bf5974f08 100644 (file)
@@ -247,7 +247,7 @@ def edge_loops_from_tessfaces(mesh, tessfaces=None, seams=()):
                         break
 
                 i = ed_adj.index(context_loop[-2])
-                context_loop.append(ed_adj[not  i])
+                context_loop.append(ed_adj[not i])
 
                 # Dont look at this again
                 del ed_adj[:]
@@ -530,12 +530,12 @@ def face_random_points(num_points, tessfaces):
         tris.append((verts[fv[0]].co,
                      verts[fv[1]].co,
                      verts[fv[2]].co,
-                    ))
+                     ))
         if len(fv) == 4:
             tris.append((verts[fv[0]].co,
                          verts[fv[3]].co,
                          verts[fv[2]].co,
-                        ))
+                         ))
         tri_faces.append(tris)
 
     # For each face, generate the required number of random points
index 4e1385cff80c51b2f2245050033bbe8397855121..5797b8b7bf3b1f5073cabd07bfa98e7198023a84 100644 (file)
@@ -123,7 +123,7 @@ def object_data_add(context, obdata, operator=None, use_active_layer=True):
             base.layers[scene.active_layer] = True
         else:
             base.layers = [True if i == scene.active_layer
-                else False for i in range(len(scene.layers))]
+                           else False for i in range(len(scene.layers))]
     if v3d:
         base.layers_from_view(context.space_data)
 
index b2f366d5d1ea0621331f793c25511d5712879f22..7a075e93e1a15108da29f3fe6a7e57e9363baee5 100644 (file)
@@ -50,7 +50,7 @@ def region_2d_to_vector_3d(region, rv3d, coord):
         out = Vector(((2.0 * coord[0] / region.width) - 1.0,
                       (2.0 * coord[1] / region.height) - 1.0,
                       -0.5
-                    ))
+                     ))
 
         w = out.dot(persinv[3].xyz) + persinv[3][3]
 
@@ -89,7 +89,7 @@ def region_2d_to_origin_3d(region, rv3d, coord):
         persinv = persmat.inverted()
         origin_start = ((persinv.col[0].xyz * dx) +
                         (persinv.col[1].xyz * dy) +
-                         viewinv.translation)
+                        viewinv.translation)
     return origin_start
 
 
index 0395a38f4a237fd5a96caeca06deffefa5ed3448..4aa3c5de5733b70a1ac6b6813ad0af1e8f7dc0b8 100644 (file)
@@ -28,14 +28,17 @@ __all__ = (
 
 import bpy as _bpy
 
+
 class _RestrictContext():
     __slots__ = ()
     _real_data = _bpy.data
     # safe, the pointer never changes
     _real_pref = _bpy.context.user_preferences
+
     @property
     def window_manager(self):
         return self._real_data.window_managers[0]
+
     @property
     def user_preferences(self):
         return self._real_pref
@@ -51,6 +54,7 @@ _data_restrict = _RestrictData()
 
 class RestrictBlend():
     __slots__ = ("context", "data")
+
     def __enter__(self):
         self.data = _bpy.data
         self.context = _bpy.context
index 6c4e1f74cc4368db6191c7c02c3b728e5b75a400..9161cc20d2cd1e83efceba205e2b1208189681f6 100644 (file)
@@ -484,13 +484,16 @@ class Text(bpy_types.ID):
                                  if cont.type == 'PYTHON']
                      )
 
+
 class NodeSocket(StructRNA):  # , metaclass=RNAMeta
     __slots__ = ()
 
     @property
     def links(self):
         """List of node links from or to this socket"""
-        return tuple(link for link in self.id_data.links if link.from_socket == self or link.to_socket == self)
+        return tuple(link for link in self.id_data.links
+                     if (link.from_socket == self or
+                         link.to_socket == self))
 
 
 # values are module: [(cls, path, line), ...]
index 39e00f949536d265d48a632029a0f06961098d57..bc0224db765de38447a29a5e20ac91ac563326c4 100644 (file)
@@ -22,6 +22,7 @@ import bpy
 from bpy.types import Operator
 from bpy.props import BoolProperty, EnumProperty, StringProperty
 
+
 # Base class for node 'Add' operators
 class NodeAddOperator():
     @staticmethod
@@ -78,8 +79,9 @@ class NODE_OT_add_node(NodeAddOperator, Operator):
     use_transform = BoolProperty(
             name="Use Transform",
             description="Start transform operator after inserting the node",
-            default = False,
+            default=False,
             )
+
     def execute(self, context):
         node = self.create_node(context, self.type)
 
index d6a0e30b11044655fb3d50eeae4481d65908af3c..567ea830409bc79688d0b459dabe3eca5ca9b54a 100644 (file)
@@ -111,10 +111,10 @@ class SelectCamera(Operator):
     bl_options = {'REGISTER', 'UNDO'}
 
     extend = BoolProperty(
-           name="Extend",
-           description="Extend the selection",
-           default=False
-           )
+            name="Extend",
+            description="Extend the selection",
+            default=False
+            )
 
     def execute(self, context):
         scene = context.scene
@@ -305,7 +305,7 @@ class ShapeTransfer(Operator):
                    ('RELATIVE_EDGE',
                    "Relative Edge",
                    "Calculate relative position (using edges)",
-                   ),
+                    ),
                    ),
             name="Transformation Mode",
             description="Relative shape positions to the new shape method",
@@ -682,7 +682,7 @@ class TransformsToDeltasAnim(Operator):
             "scale"                : "delta_scale"
         }
         DELTA_PATHS = STANDARD_TO_DELTA_PATHS.values()
-        
+
         # try to apply on each selected object
         success = False
         for obj in context.selected_editable_objects:
@@ -692,7 +692,7 @@ class TransformsToDeltasAnim(Operator):
                             "No animation data to convert on object: %r" %
                             obj.name)
                 continue
-            
+
             # first pass over F-Curves: ensure that we don't have conflicting
             # transforms already (e.g. if this was applied already) [#29110]
             existingFCurves = {}
@@ -708,7 +708,7 @@ class TransformsToDeltasAnim(Operator):
                 else:
                     # non-transform - ignore
                     continue
-                    
+
                 # a delta path like this for the same index shouldn't
                 # exist already, otherwise we've got a conflict
                 if dpath in existingFCurves:
@@ -716,8 +716,9 @@ class TransformsToDeltasAnim(Operator):
                     if fcu.array_index in existingFCurves[dpath]:
                         # conflict
                         self.report({'ERROR'},
-                            "Object '%r' already has '%r' F-Curve(s). Remove these before trying again" %
-                            (obj.name, dpath))
+                                    "Object '%r' already has '%r' F-Curve(s). "
+                                    "Remove these before trying again" %
+                                    (obj.name, dpath))
                         return {'CANCELLED'}
                     else:
                         # no conflict here
@@ -725,8 +726,7 @@ class TransformsToDeltasAnim(Operator):
                 else:
                     # no conflict yet
                     existingFCurves[dpath] = [fcu.array_index]
-                
-            
+
             # if F-Curve uses standard transform path
             # just append "delta_" to this path
             for fcu in adt.action.fcurves:
@@ -766,7 +766,7 @@ class DupliOffsetFromCursor(Operator):
 
     @classmethod
     def poll(cls, context):
-        return  context.active_object is not None
+        return (context.active_object is not None)
 
     def execute(self, context):
         scene = context.scene
index ae4079e35aa4cbe1bd1090c086cb43855ed81bab..dac7adecaff9f1bde13866794a36947ccb7e4cdc 100644 (file)
@@ -320,13 +320,13 @@ class AddPresetFluid(AddPresetBase, Operator):
     preset_menu = "FLUID_MT_presets"
 
     preset_defines = [
-    "fluid = bpy.context.fluid"
-    ]
+        "fluid = bpy.context.fluid"
+        ]
 
     preset_values = [
-    "fluid.settings.viscosity_base",
-    "fluid.settings.viscosity_exponent",
-    ]
+        "fluid.settings.viscosity_base",
+        "fluid.settings.viscosity_exponent",
+        ]
 
     preset_subdir = "fluid"
 
index 7b6013f304404b6e512cc98a17b27bae4c8aced3..ee3ae2878dc55f6d0d4f5aea92ae69f9ff162107 100644 (file)
@@ -26,18 +26,18 @@ from bpy.types import Operator
 
 
 def extend(obj, operator, EXTEND_MODE):
-    
+
     import bmesh
     me = obj.data
     # script will fail without UVs
     if not me.uv_textures:
         me.uv_textures.new()
-    
+
     bm = bmesh.from_edit_mesh(me)
-    
+
     f_act = bm.faces.active
     uv_act = bm.loops.layers.uv.active
-    
+
     if f_act is None:
         operator.report({'ERROR'}, "No active face")
         return
@@ -57,7 +57,7 @@ def extend(obj, operator, EXTEND_MODE):
             f.tag = False
         # tag the active face True since we begin there
         f_act.tag = True
-    
+
     def walk_face(f):
         # all faces in this list must be tagged
         f.tag = True
@@ -102,7 +102,6 @@ def extend(obj, operator, EXTEND_MODE):
             else:
                 break
 
-
     def extrapolate_uv(fac,
                        l_a_outer, l_a_inner,
                        l_b_outer, l_b_inner):
@@ -112,7 +111,7 @@ def extend(obj, operator, EXTEND_MODE):
     def apply_uv(f_prev, l_prev, f_next):
         l_a = [None, None, None, None]
         l_b = [None, None, None, None]
-        
+
         l_a[0] = l_prev
         l_a[1] = l_a[0].link_loop_next
         l_a[2] = l_a[1].link_loop_next
@@ -133,7 +132,7 @@ def extend(obj, operator, EXTEND_MODE):
         #  +-----------+
         #  copy from this face to the one above.
 
-        # get the other loops 
+        # get the other loops
         l_next = l_prev.link_loop_radial_next
         if l_next.vert != l_prev.vert:
             l_b[1] = l_next
index 198b3660ff8066dbc7763ca7cd3b464bc697316c..6cb9e7276fdd4e0b76620a2267794e2292e3403e 100644 (file)
@@ -189,14 +189,14 @@ class prettyface(object):
 
 
 def lightmap_uvpack(meshes,
-                      PREF_SEL_ONLY=True,
-                      PREF_NEW_UVLAYER=False,
-                      PREF_PACK_IN_ONE=False,
-                      PREF_APPLY_IMAGE=False,
-                      PREF_IMG_PX_SIZE=512,
-                      PREF_BOX_DIV=8,
-                      PREF_MARGIN_DIV=512
-                      ):
+                    PREF_SEL_ONLY=True,
+                    PREF_NEW_UVLAYER=False,
+                    PREF_PACK_IN_ONE=False,
+                    PREF_APPLY_IMAGE=False,
+                    PREF_IMG_PX_SIZE=512,
+                    PREF_BOX_DIV=8,
+                    PREF_MARGIN_DIV=512
+                    ):
     """
     BOX_DIV if the maximum division of the UV map that
     a box may be consolidated into.
index b33a10b671e29b53d12f56e83683ab7e12cf07d7..6c418902433a7eb4895cfa3ef2c4fc633e190fe6 100644 (file)
@@ -1584,7 +1584,7 @@ class WM_OT_addon_enable(Operator):
                                           "version %d.%d.%d and might not "
                                           "function (correctly), "
                                           "though it is enabled") %
-                                          info_ver)
+                                         info_ver)
             return {'FINISHED'}
         else:
             return {'CANCELLED'}
index aa1a8a9a25b9b24bfeec86977ee2921bc0a53770..9ed12943bf8a3a9389c6afd4fb59a77e4d23dfee 100644 (file)
@@ -133,6 +133,7 @@ def register():
 def unregister():
     bpy.utils.unregister_module(__name__)
 
+
 # Define a default UIList, when a list does not need any custom drawing...
 class UI_UL_list(bpy.types.UIList):
     pass
index f50fc55abacd07a2345053fbd512474af4e1d04f..dcef5aaa096f89e4c06229def2fde848519e07ae 100644 (file)
@@ -194,7 +194,6 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
         row = layout.row()
         row.template_list("MESH_UL_vgroups", "", ob, "vertex_groups", ob.vertex_groups, "active_index", rows=rows)
 
-
         col = row.column(align=True)
         col.operator("object.vertex_group_add", icon='ZOOMIN', text="")
         col.operator("object.vertex_group_remove", icon='ZOOMOUT', text="").all = False
index df29f18853bbe06e6ae11ceb8db3b5f21cc67d85..31557d5fa2d6759a8c5150567927ba7ed6aadcc0 100644 (file)
@@ -333,23 +333,23 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
     def LAPLACIANSMOOTH(self, layout, ob, md):
         layout.prop(md, "iterations")
-        
+
         split = layout.split(percentage=0.25)
-        
+
         col = split.column()
         col.label(text="Axis:")
         col.prop(md, "use_x")
         col.prop(md, "use_y")
         col.prop(md, "use_z")
-        
+
         col = split.column()
         col.label(text="Lambda:")
         col.prop(md, "lambda_factor", text="Factor")
         col.prop(md, "lambda_border", text="Border")
-        
+
         col.separator()
         col.prop(md, "use_volume_preserve")
-        
+
         layout.label(text="Vertex Group:")
         layout.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
@@ -558,7 +558,6 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
         col = split.column()
 
-
     def PARTICLE_INSTANCE(self, layout, ob, md):
         layout.prop(md, "object")
         layout.prop(md, "particle_system_index", text="Particle System")
@@ -1045,12 +1044,12 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
     def UV_WARP(self, layout, ob, md):
         split = layout.split()
         col = split.column()
-        col.prop(md, "center");
+        col.prop(md, "center")
 
         col = split.column()
         col.label(text="UV Axis:")
-        col.prop(md, "axis_u", text="");
-        col.prop(md, "axis_v", text="");
+        col.prop(md, "axis_u", text="")
+        col.prop(md, "axis_v", text="")
 
         split = layout.split()
         col = split.column()
index 58b6aa6916c4070a2a5645185e6cb72b22b7c36f..a896855b217e23cb0c6b741a4ae0318e621559a5 100644 (file)
@@ -199,6 +199,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
             col = split.column()
             col.prop(game, "collision_mask")
 
+
 class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel, Panel):
     bl_label = "Collision Bounds"
     COMPAT_ENGINES = {'BLENDER_GAME'}
@@ -411,10 +412,10 @@ class RENDER_PT_game_system(RenderButtonsPanel, Panel):
         col = row.column()
         col.prop(gs, "use_display_lists")
         col.active = gs.raster_storage != 'VERTEX_BUFFER_OBJECT'
-               
+
         row = layout.row()
         row.prop(gs, "raster_storage")
-        
+
         row = layout.row()
         row.label("Exit Key")
         row.prop(gs, "exit_key", text="", event=True)
index 9861db39f308ed6375abc6dddfdf0883658b9b7f..3bdb6f3207650886f2c7d7ecad9c24217366e5ab 100644 (file)
@@ -26,7 +26,8 @@ from bpy.types import Menu, UIList
 
 
 class MASK_UL_layers(UIList):
-    def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
+    def draw_item(self, context, layout, data, item, icon,
+                  active_data, active_propname, index):
         # assert(isinstance(item, bpy.types.MaskLayer)
         mask = item
         if self.layout_type in {'DEFAULT', 'COMPACT'}:
@@ -86,7 +87,8 @@ class MASK_PT_layers:
         rows = 5 if active_layer else 2
 
         row = layout.row()
-        row.template_list("MASK_UL_layers", "", mask, "layers", mask, "active_layer_index", rows=rows)
+        row.template_list("MASK_UL_layers", "", mask, "layers",
+                          mask, "active_layer_index", rows=rows)
 
         sub = row.column(align=True)
 
index eb0929895f87c59572f35b757dbb2d71a6d406b4..6478e49f464732bd7bd8e469a3bca05412a81259 100644 (file)
@@ -172,7 +172,6 @@ class ConstraintButtonsPanel():
             sub.active = con.use_rotation
             sub.prop(con, "orient_weight", text="Rotation", slider=True)
 
-
     def IK_COPY_POSE(self, context, layout, con):
         self.target_template(layout, con)
         self.ik_template(layout, con)
index b70ff322765a0335f74388b9c38cb0ea128d1caa..db8dfd7a542061c1af184c7b43af8d1f562b89a6 100644 (file)
@@ -133,7 +133,7 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
             row.prop(cache, "frame_end")
         if cachetype not in {'SMOKE', 'CLOTH', 'DYNAMIC_PAINT'}:
             row.prop(cache, "frame_step")
-            
+
         if cachetype != 'SMOKE':
             layout.label(text=cache.info)
 
index 9393852b8a55437275727ed6156fd4c7e6e2dc4c..efc675ffe8355fb2dfdde375796334f3a189ff92 100644 (file)
@@ -80,7 +80,7 @@ class PHYSICS_PT_dynamic_paint(PhysicButtonsPanel, Panel):
 
                 row = layout.row()
                 row.template_list("PHYSICS_UL_dynapaint_surfaces", "", canvas, "canvas_surfaces",
-                                   canvas.canvas_surfaces, "active_index", rows=2)
+                                  canvas.canvas_surfaces, "active_index", rows=2)
 
                 col = row.column(align=True)
                 col.operator("dpaint.surface_slot_add", icon='ZOOMIN', text="")
index ce5053f0ecfde77b27fadcbb0f01cbc809a628f3..487f43aa973b8dbd4fd03371f37c336bd063ecc7 100644 (file)
@@ -76,7 +76,7 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel):
         elif md.smoke_type == 'FLOW':
 
             flow = md.flow_settings
-            
+
             layout.prop(flow, "smoke_flow_type", expand=False)
 
             if flow.smoke_flow_type != "OUTFLOW":
@@ -118,7 +118,8 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel):
 
             col = split.column()
             col.prop(coll, "collision_type")
-            
+
+
 class PHYSICS_PT_smoke_flow_advanced(PhysicButtonsPanel, Panel):
     bl_label = "Smoke Flow Advanced"
     bl_options = {'DEFAULT_CLOSED'}
@@ -132,7 +133,7 @@ class PHYSICS_PT_smoke_flow_advanced(PhysicButtonsPanel, Panel):
         layout = self.layout
         ob = context.object
         flow = context.smoke.flow_settings
-        
+
         split = layout.split()
         col = split.column()
 
@@ -147,11 +148,12 @@ class PHYSICS_PT_smoke_flow_advanced(PhysicButtonsPanel, Panel):
         if flow.texture_map_type == "AUTO":
             sub.prop(flow, "texture_size")
         sub.prop(flow, "texture_offset")
-        
+
         col = split.column()
         col.label(text="Vertex Group:")
         col.prop_search(flow, "density_vertex_group", ob, "vertex_groups", text="")
 
+
 class PHYSICS_PT_smoke_fire(PhysicButtonsPanel, Panel):
     bl_label = "Smoke Flames"
     bl_options = {'DEFAULT_CLOSED'}
@@ -179,7 +181,8 @@ class PHYSICS_PT_smoke_fire(PhysicButtonsPanel, Panel):
         col.prop(domain, "flame_ignition")
         col.prop(domain, "flame_max_temp")
         col.prop(domain, "flame_smoke_color")
-        
+
+
 class PHYSICS_PT_smoke_adaptive_domain(PhysicButtonsPanel, Panel):
     bl_label = "Smoke Adaptive Domain"
     bl_options = {'DEFAULT_CLOSED'}
@@ -199,10 +202,10 @@ class PHYSICS_PT_smoke_adaptive_domain(PhysicButtonsPanel, Panel):
 
         domain = context.smoke.domain_settings
         layout.active = domain.use_adaptive_domain
-        
+
         split = layout.split()
-        split.enabled = not domain.point_cache.is_baked
+        split.enabled = (not domain.point_cache.is_baked)
+
         col = split.column(align=True)
         col.label(text="Resolution:")
         col.prop(domain, "additional_res")
@@ -212,6 +215,7 @@ class PHYSICS_PT_smoke_adaptive_domain(PhysicButtonsPanel, Panel):
         col.label(text="Advanced:")
         col.prop(domain, "adapt_threshold")
 
+
 class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, Panel):
     bl_label = "Smoke High Resolution"
     bl_options = {'DEFAULT_CLOSED'}
@@ -249,6 +253,7 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, Panel):
 
         layout.prop(md, "show_high_resolution")
 
+
 class PHYSICS_PT_smoke_groups(PhysicButtonsPanel, Panel):
     bl_label = "Smoke Groups"
     bl_options = {'DEFAULT_CLOSED'}
@@ -262,7 +267,7 @@ class PHYSICS_PT_smoke_groups(PhysicButtonsPanel, Panel):
     def draw(self, context):
         layout = self.layout
         domain = context.smoke.domain_settings
-        
+
         split = layout.split()
 
         col = split.column()
@@ -276,6 +281,7 @@ class PHYSICS_PT_smoke_groups(PhysicButtonsPanel, Panel):
         col.label(text="Collision Group:")
         col.prop(domain, "collision_group", text="")
 
+
 class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, Panel):
     bl_label = "Smoke Cache"
     bl_options = {'DEFAULT_CLOSED'}
index 03b3d41b6317c268963b41ac3a1b011a0d52d8f8..29e32401d2b53b4be88b3787332e0660c8fc78de 100644 (file)
@@ -60,6 +60,7 @@ class RENDER_UL_renderlayers(UIList):
 #              uiDefButR(block, OPTION, 0, "", 0, 0, UI_UNIT_X, UI_UNIT_Y, itemptr, "use", 0, 0, 0, 0, 0,  NULL);
 #      }
 
+
 class RenderButtonsPanel():
     bl_space_type = 'PROPERTIES'
     bl_region_type = 'WINDOW'
@@ -356,7 +357,7 @@ class RENDER_PT_performance(RenderButtonsPanel, Panel):
         subsub = sub.column()
         subsub.enabled = rd.threads_mode == 'FIXED'
         subsub.prop(rd, "threads")
-        
+
         sub = col.column(align=True)
         sub.label(text="Tile Size:")
         sub.prop(rd, "tile_x", text="X")
index 5fc571337675ff29d6a35a302577dc89b6015272..db71bbe239020a1d6d4e7fb83e9e571f2f7e45ef 100644 (file)
@@ -23,14 +23,17 @@ from bpy.types import Panel, Header, Menu, UIList
 
 
 class CLIP_UL_tracking_objects(UIList):
-    def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
+    def draw_item(self, context, layout, data, item, icon,
+                  active_data, active_propname, index):
         # assert(isinstance(item, bpy.types.MovieTrackingObject)
         tobj = item
         if self.layout_type in {'DEFAULT', 'COMPACT'}:
-            layout.label(tobj.name, icon='CAMERA_DATA' if tobj.is_camera else 'OBJECT_DATA')
+            layout.label(tobj.name, icon='CAMERA_DATA'
+                         if tobj.is_camera else 'OBJECT_DATA')
         elif self.layout_type in {'GRID'}:
             layout.alignment = 'CENTER'
-            layout.label("", icon='CAMERA_DATA' if tobj.is_camera else 'OBJECT_DATA')
+            layout.label("", icon='CAMERA_DATA'
+                         if tobj.is_camera else 'OBJECT_DATA')
 
 
 class CLIP_HT_header(Header):
@@ -333,7 +336,8 @@ class CLIP_PT_tools_solve(CLIP_PT_tracking_panel, Panel):
 
         col = layout.column(align=True)
         col.active = not settings.use_tripod_solver
-        col.prop(settings, "use_fallback_reconstruction", text="Allow Fallback")
+        col.prop(settings, "use_fallback_reconstruction",
+                 text="Allow Fallback")
         sub = col.column()
         sub.active = settings.use_fallback_reconstruction
         sub.prop(settings, "reconstruction_success_threshold")
@@ -482,7 +486,8 @@ class CLIP_PT_objects(CLIP_PT_clip_view_panel, Panel):
         tracking = sc.clip.tracking
 
         row = layout.row()
-        row.template_list("CLIP_UL_tracking_objects", "", tracking, "objects", tracking, "active_object_index", rows=3)
+        row.template_list("CLIP_UL_tracking_objects", "", tracking, "objects",
+                          tracking, "active_object_index", rows=3)
 
         sub = row.column(align=True)
 
@@ -738,7 +743,8 @@ class CLIP_PT_stabilization(CLIP_PT_reconstruction_panel, Panel):
         layout.active = stab.use_2d_stabilization
 
         row = layout.row()
-        row.template_list("UI_UL_list", "", stab, "tracks", stab, "active_track_index", rows=3)
+        row.template_list("UI_UL_list", "", stab, "tracks",
+                          stab, "active_track_index", rows=3)
 
         sub = row.column(align=True)
 
index 5535070c1c412c2573f63ddd020ab614e6473a10..094fa4a7c6d390bfe1a83e1a46a419fc0118d40a 100644 (file)
@@ -275,8 +275,8 @@ class DOPESHEET_MT_key(Menu):
         layout.operator("action.keyframe_insert")
 
         layout.separator()
-        layout.operator("action.frame_jump")        
-        
+        layout.operator("action.frame_jump")
+
         layout.separator()
         layout.operator("action.duplicate_move")
         layout.operator("action.delete")
index 8df117e27a0806d8b03f4085e5c24ae041db4dc8..d85b59d18d5e7041fa2779c7fda85649b1ae95b2 100644 (file)
@@ -112,7 +112,7 @@ class INFO_MT_file(Menu):
 
         layout.separator()
 
-        layout.operator_context = 'EXEC_AREA' if  context.blend_data.is_saved else 'INVOKE_AREA'
+        layout.operator_context = 'EXEC_AREA' if context.blend_data.is_saved else 'INVOKE_AREA'
         layout.operator("wm.save_mainfile", text="Save", icon='FILE_TICK')
 
         layout.operator_context = 'INVOKE_AREA'
index 960a945f1c66ba6cd3eec6e7543452fde124ef53..65ec945c7daa328a7798c4054deb927cec6e694a 100644 (file)
@@ -152,7 +152,7 @@ class TEXT_MT_view(Menu):
         layout = self.layout
 
         layout.operator("text.properties", icon='MENU_PANEL')
-        
+
         layout.separator()
 
         layout.operator("text.move",
index a9712b1557e048fcbdcb0846daa00616530b9725..daf9190e7664574be735224afa3cf1151bf25879 100644 (file)
@@ -24,25 +24,25 @@ import os
 
 def ui_style_items(col, context):
     """ UI Style settings """
-    
+
     split = col.split()
-    
+
     col = split.column()
     col.label(text="Kerning Style:")
     col.row().prop(context, "font_kerning_style", expand=True)
     col.prop(context, "points")
-    
+
     col = split.column()
     col.label(text="Shadow Offset:")
     col.prop(context, "shadow_offset_x", text="X")
     col.prop(context, "shadow_offset_y", text="Y")
-    
+
     col = split.column()
     col.prop(context, "shadow")
     col.prop(context, "shadowalpha")
     col.prop(context, "shadowcolor")
 
-    
+
 def ui_items_general(col, context):
     """ General UI Theme Settings (User Interface)
     """
@@ -200,7 +200,7 @@ class USERPREF_PT_interface(Panel):
         col.prop(view, "show_playback_fps", text="Playback FPS")
         col.prop(view, "use_global_scene")
         col.prop(view, "object_origin_size")
+
         col.separator()
         col.separator()
         col.separator()
@@ -763,13 +763,13 @@ class USERPREF_PT_theme(Panel):
             colsub.row().prop(ui, "axis_x")
             colsub.row().prop(ui, "axis_y")
             colsub.row().prop(ui, "axis_z")
-            
+
             subsplit = row.split(percentage=0.85)
 
             padding = subsplit.split(percentage=0.15)
             colsub = padding.column()
             colsub = padding.column()
-            
+
             layout.separator()
             layout.separator()
         elif theme.theme_area == 'BONE_COLOR_SETS':
@@ -797,16 +797,16 @@ class USERPREF_PT_theme(Panel):
                 colsub.row().prop(ui, "show_colored_constraints")
         elif theme.theme_area == 'STYLE':
             col = split.column()
-            
+
             style = context.user_preferences.ui_styles[0]
-            
+
             ui = style.widget
             col.label(text="Widget:")
             ui_style_items(col, ui)
-            
+
             col.separator()
             col.separator()
-            
+
             ui = style.widget_label
             col.label(text="Widget Label:")
             ui_style_items(col, ui)
@@ -1100,8 +1100,8 @@ class USERPREF_PT_addons(Panel):
         used_ext = {ext.module for ext in userpref.addons}
 
         userpref_addons_folder = os.path.join(userpref.filepaths.script_directory, "addons")
-        scripts_addons_folder  = bpy.utils.user_resource('SCRIPTS', "addons")
-        
+        scripts_addons_folder = bpy.utils.user_resource('SCRIPTS', "addons")
+
         # collect the categories that can be filtered on
         addons = [(mod, addon_utils.module_bl_info(mod)) for mod in addon_utils.modules(addon_utils.addons_fake_modules)]
 
@@ -1152,7 +1152,7 @@ class USERPREF_PT_addons(Panel):
                     (filter == "Enabled" and is_enabled) or
                     (filter == "Disabled" and not is_enabled) or
                     (filter == "User" and (mod.__file__.startswith((scripts_addons_folder, userpref_addons_folder))))
-                   ):
+                    ):
 
                 if search and search not in info["name"].lower():
                     if info["author"]:
@@ -1244,7 +1244,6 @@ class USERPREF_PT_addons(Panel):
                                     box_prefs.label(text="Error (see console)", icon='ERROR')
                                 del addon_preferences_class.layout
 
-
         # Append missing scripts
         # First collect scripts that are used but have no script file.
         module_names = {mod.__name__ for mod, info in addons}
index 52fdf9810ebb655797d7f014d0b55dd4aa4fc465..46c574d61388e7ca3af656f38f4e4f7eb62bc743 100644 (file)
@@ -1537,7 +1537,7 @@ class VIEW3D_MT_pose_group(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         pose = context.active_object.pose
 
         layout.operator_context = 'EXEC_AREA'