Revision: 24718 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24718 Author: campbellbarton Date: 2009-11-21 01:05:43 +0100 (Sat, 21 Nov 2009)
Log Message: ----------- pep8 cleanup & default select axis to negative (artist requst, make sense if you model the RHS and spend most time looping at the models front) Modified Paths: -------------- trunk/blender/release/scripts/ui/properties_data_curve.py trunk/blender/release/scripts/ui/properties_data_lattice.py trunk/blender/release/scripts/ui/properties_data_metaball.py trunk/blender/release/scripts/ui/properties_data_modifier.py trunk/blender/release/scripts/ui/properties_game.py trunk/blender/release/scripts/ui/properties_object_constraint.py trunk/blender/release/scripts/ui/properties_physics_common.py trunk/blender/release/scripts/ui/properties_physics_field.py trunk/blender/release/scripts/ui/properties_physics_fluid.py trunk/blender/release/scripts/ui/properties_physics_softbody.py trunk/blender/release/scripts/ui/properties_render.py trunk/blender/release/scripts/ui/space_console.py trunk/blender/release/scripts/ui/space_image.py trunk/blender/release/scripts/ui/space_node.py trunk/blender/release/scripts/ui/space_sequencer.py trunk/blender/release/scripts/ui/space_userpref.py trunk/blender/release/scripts/ui/space_view3d.py trunk/blender/release/scripts/ui/space_view3d_toolbar.py Modified: trunk/blender/release/scripts/ui/properties_data_curve.py =================================================================== --- trunk/blender/release/scripts/ui/properties_data_curve.py 2009-11-20 22:53:39 UTC (rev 24717) +++ trunk/blender/release/scripts/ui/properties_data_curve.py 2009-11-21 00:05:43 UTC (rev 24718) @@ -112,7 +112,7 @@ sub.itemL(text="") sub.itemR(curve, "resolution_v", text="Preview V") sub.itemR(curve, "render_resolution_v", text="Render V") - + if is_curve or is_text: sub = col.column() sub.active = (curve.dimensions == '2D') @@ -173,7 +173,7 @@ if wide_ui: row.itemL() - + split = layout.split() col = split.column() @@ -259,7 +259,7 @@ class DATA_PT_font(DataButtonsPanel): bl_label = "Font" - + def poll(self, context): return (context.object and context.object.type == 'TEXT' and context.curve) @@ -295,12 +295,12 @@ col.itemR(text, "text_on_curve", text="") split = layout.split() - + col = split.column(align=True) col.itemL(text="Underline:") col.itemR(text, "ul_position", text="Position") col.itemR(text, "ul_height", text="Thickness") - + if wide_ui: col = split.column() col.itemL(text="Character:") @@ -322,7 +322,7 @@ text = context.curve wide_ui = context.region.width > narrowui - + layout.itemL(text="Align:") if wide_ui: layout.itemR(text, "spacemode", expand=True) @@ -349,7 +349,7 @@ def poll(self, context): return (context.object and context.object.type == 'TEXT' and context.curve) - + def draw(self, context): layout = self.layout Modified: trunk/blender/release/scripts/ui/properties_data_lattice.py =================================================================== --- trunk/blender/release/scripts/ui/properties_data_lattice.py 2009-11-20 22:53:39 UTC (rev 24717) +++ trunk/blender/release/scripts/ui/properties_data_lattice.py 2009-11-21 00:05:43 UTC (rev 24718) @@ -21,6 +21,7 @@ narrowui = 180 + class DataButtonsPanel(bpy.types.Panel): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' @@ -72,14 +73,14 @@ if wide_ui: col = split.column() col.itemR(lat, "interpolation_type_u", text="") - + split = layout.split() col = split.column() col.itemR(lat, "points_v") if wide_ui: col = split.column() col.itemR(lat, "interpolation_type_v", text="") - + split = layout.split() col = split.column() col.itemR(lat, "points_w") Modified: trunk/blender/release/scripts/ui/properties_data_metaball.py =================================================================== --- trunk/blender/release/scripts/ui/properties_data_metaball.py 2009-11-20 22:53:39 UTC (rev 24717) +++ trunk/blender/release/scripts/ui/properties_data_metaball.py 2009-11-21 00:05:43 UTC (rev 24718) @@ -21,6 +21,7 @@ narrowui = 180 + class DataButtonsPanel(bpy.types.Panel): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' @@ -110,7 +111,7 @@ col.itemR(metaelem, "stiffness", text="Stiffness") col.itemR(metaelem, "negative", text="Negative") col.itemR(metaelem, "hide", text="Hide") - + if wide_ui: col = split.column(align=True) Modified: trunk/blender/release/scripts/ui/properties_data_modifier.py =================================================================== --- trunk/blender/release/scripts/ui/properties_data_modifier.py 2009-11-20 22:53:39 UTC (rev 24717) +++ trunk/blender/release/scripts/ui/properties_data_modifier.py 2009-11-21 00:05:43 UTC (rev 24718) @@ -85,8 +85,8 @@ layout.itemR(md, "fit_type") else: layout.itemR(md, "fit_type", text="") - - + + if md.fit_type == 'FIXED_COUNT': layout.itemR(md, "count") elif md.fit_type == 'FIT_LENGTH': @@ -134,7 +134,7 @@ def BEVEL(self, layout, ob, md, wide_ui): split = layout.split() - + col = split.column() col.itemR(md, "width") @@ -155,7 +155,7 @@ col = split.column() col.itemL(text="Operation:") col.itemR(md, "operation", text="") - + if wide_ui: col = split.column() col.itemL(text="Object:") @@ -175,14 +175,14 @@ sub.active = md.randomize sub.itemR(md, "seed") - def CAST(self, layout, ob, md, wide_ui): + def CAST(self, layout, ob, md, wide_ui): split = layout.split(percentage=0.25) if wide_ui: split.itemL(text="Cast Type:") split.itemR(md, "cast_type", text="") else: - layout.itemR(md, "cast_type", text="") + layout.itemR(md, "cast_type", text="") split = layout.split(percentage=0.25) @@ -198,16 +198,16 @@ col.itemR(md, "from_radius") split = layout.split() - - col = split.column() + + col = split.column() col.itemL(text="Vertex Group:") col.item_pointerR(md, "vertex_group", ob, "vertex_groups", text="") if wide_ui: col = split.column() col.itemL(text="Control Object:") - col.itemR(md, "object", text="") + col.itemR(md, "object", text="") if md.object: - col.itemR(md, "use_transform") + col.itemR(md, "use_transform") def CLOTH(self, layout, ob, md, wide_ui): layout.itemL(text="See Cloth panel.") @@ -255,15 +255,14 @@ layout.itemS() split = layout.split() - + col = split.column() col.itemR(md, "midlevel") - + if wide_ui: col = split.column() col.itemR(md, "strength") - def EDGE_SPLIT(self, layout, ob, md, wide_ui): split = layout.split() @@ -279,7 +278,7 @@ def EXPLODE(self, layout, ob, md, wide_ui): split = layout.split() - + col = split.column() col.itemL(text="Vertex group:") col.item_pointerR(md, "vertex_group", ob, "vertex_groups", text="") @@ -339,7 +338,7 @@ col = split.column() col.itemL(text="Object:") col.itemR(md, "object", text="") - + if wide_ui: col = split.column() col.itemL(text="Vertex Group:") @@ -390,7 +389,7 @@ col = split.column() col.itemR(md, "precision") - + if wide_ui: col = split.column() col.itemR(md, "dynamic") @@ -398,9 +397,9 @@ def MIRROR(self, layout, ob, md, wide_ui): layout.itemR(md, "merge_limit") if wide_ui: - split = layout.split(percentage=0.25) + split = layout.split(percentage=0.25) else: - split = layout.split(percentage=0.4) + split = layout.split(percentage=0.4) col = split.column() col.itemL(text="Axis:") @@ -412,12 +411,12 @@ col = split.column() else: subsplit = layout.split() - col = subsplit.column() + col = subsplit.column() col.itemL(text="Options:") col.itemR(md, "clip", text="Clipping") col.itemR(md, "mirror_vertex_groups", text="Vertex Groups") - col = split.column() + col = split.column() col.itemL(text="Textures:") col.itemR(md, "mirror_u", text="U") col.itemR(md, "mirror_v", text="V") @@ -432,12 +431,12 @@ else: layout.row().itemR(md, "subdivision_type", text="") layout.itemR(md, "level") - + split = layout.split() col = split.column() col.itemO("object.multires_subdivide", text="Subdivide") - + if wide_ui: col = split.column() col.itemO("object.multires_higher_levels_delete", text="Delete Higher") @@ -445,7 +444,7 @@ def PARTICLE_INSTANCE(self, layout, ob, md, wide_ui): layout.itemR(md, "object") layout.itemR(md, "particle_system_number", text="Particle System") - + split = layout.split() col = split.column() col.itemL(text="Create From:") @@ -459,17 +458,17 @@ col.itemR(md, "alive") col.itemR(md, "unborn") col.itemR(md, "dead") - + layout.itemS() - + layout.itemR(md, "path", text="Create Along Paths") - + split = layout.split() split.active = md.path col = split.column() col.row().itemR(md, "axis", expand=True) col.itemR(md, "keep_shape") - + if wide_ui: col = split.column() col.itemR(md, "position", slider=True) @@ -500,9 +499,9 @@ col.itemR(md, "mode", text="") if wide_ui: - split = layout.split(percentage=0.25) + split = layout.split(percentage=0.25) else: - split = layout.split(percentage=0.35) + split = layout.split(percentage=0.35) col = split.column() if md.mode == 'PROJECT': @@ -527,7 +526,7 @@ layout.itemL(text="Auxiliary Target:") layout.itemR(md, "auxiliary_target", text="") - + elif md.mode == 'NEAREST_SURFACEPOINT': layout.itemR(md, "keep_above_surface") @@ -593,7 +592,7 @@ col.itemL(text="Subdivisions:") col.itemR(md, "levels", text="View") col.itemR(md, "render_levels", text="Render") - + if wide_ui: col = split.column() col.itemL(text="Options:") @@ -609,19 +608,19 @@ col = split.column() col.itemL(text="UV Layer:") col.item_pointerR(md, "uv_layer", ob.data, "uv_textures", text="") - + if wide_ui: col = split.column() col.itemL(text="Image:") col.itemR(md, "image", text="") - split = layout.split() + split = layout.split() col = split.column() col.itemR(md, "override_image") col.itemR(md, "num_projectors", text="Projectors") for proj in md.projectors: @@ Diff output truncated at 10240 characters. @@ _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs