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)

This commit is contained in:
Campbell Barton
2009-11-21 00:05:43 +00:00
parent d91e6e2160
commit 6073bc9bc3
18 changed files with 157 additions and 161 deletions

View File

@@ -21,6 +21,7 @@ import bpy
narrowui = 180
class DataButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'

View File

@@ -21,6 +21,7 @@ import bpy
narrowui = 180
class DataButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'

View File

@@ -263,7 +263,6 @@ class DATA_PT_modifiers(DataButtonsPanel):
col = split.column()
col.itemR(md, "strength")
def EDGE_SPLIT(self, layout, ob, md, wide_ui):
split = layout.split()

View File

@@ -21,6 +21,7 @@ import bpy
narrowui = 180
class PhysicsButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
@@ -432,6 +433,7 @@ class WORLD_PT_game_context_world(WorldButtonsPanel):
elif world:
layout.template_ID(space, "pin_id")
class WORLD_PT_game_world(WorldButtonsPanel):
bl_label = "World"
@@ -450,6 +452,7 @@ class WORLD_PT_game_world(WorldButtonsPanel):
col = split.column()
col.itemR(world, "ambient_color")
class WORLD_PT_game_mist(WorldButtonsPanel):
bl_label = "Mist"
@@ -474,6 +477,7 @@ class WORLD_PT_game_mist(WorldButtonsPanel):
col = split.column()
col.itemR(world.mist, "depth")
class WORLD_PT_game_physics(WorldButtonsPanel):
bl_label = "Physics"

View File

@@ -430,6 +430,7 @@ class RENDER_PT_encoding(RenderButtonsPanel):
col.itemR(rd, "ffmpeg_multiplex_audio")
col.itemR(rd, "ffmpeg_audio_volume", slider=True)
class RENDER_PT_antialiasing(RenderButtonsPanel):
bl_label = "Anti-Aliasing"
COMPAT_ENGINES = set(['BLENDER_RENDER'])

View File

@@ -21,6 +21,7 @@ import bpy
narrowui = 180
class IMAGE_MT_view(bpy.types.Menu):
bl_label = "View"
@@ -417,6 +418,7 @@ class IMAGE_PT_view_properties(bpy.types.Panel):
sub.active = uvedit.draw_stretch
sub.row().itemR(uvedit, "draw_stretch_type", expand=True)
class IMAGE_PT_paint(bpy.types.Panel):
bl_space_type = 'IMAGE_EDITOR'
bl_region_type = 'UI'

View File

@@ -23,7 +23,7 @@ import bpy
def act_strip(context):
try:
return context.scene.sequence_editor.active_strip
except:
except AttributeError:
return None

View File

@@ -1334,6 +1334,7 @@ class VIEW3D_MT_edit_armature(bpy.types.Menu):
layout.item_menu_enumO("armature.flags_set", "mode", text="Bone Settings")
class VIEW3D_MT_armature_specials(bpy.types.Menu):
bl_label = "Specials"
@@ -1353,6 +1354,7 @@ class VIEW3D_MT_armature_specials(bpy.types.Menu):
layout.item_enumO("armature.autoside_names", "type", 'ZAXIS', text="AutoName Top/Bottom")
layout.itemO("armature.flip_names", text="Flip Names")
class VIEW3D_MT_edit_armature_parent(bpy.types.Menu):
bl_label = "Parent"

View File

@@ -72,9 +72,6 @@ class VIEW3D_PT_tools_objectmode(View3DPanel):
row.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Line")
row.item_enumO("gpencil.draw", "mode", 'ERASER', text="Erase")
# ********** default tools for editmode_mesh ****************
@@ -207,9 +204,6 @@ class VIEW3D_PT_tools_curveedit(View3DPanel):
row.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Line")
row.item_enumO("gpencil.draw", "mode", 'ERASER', text="Erase")
# ********** default tools for editmode_surface ****************
@@ -250,9 +244,6 @@ class VIEW3D_PT_tools_surfaceedit(View3DPanel):
row.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Line")
row.item_enumO("gpencil.draw", "mode", 'ERASER', text="Erase")
# ********** default tools for editmode_text ****************
@@ -326,9 +317,6 @@ class VIEW3D_PT_tools_armatureedit(View3DPanel):
row.item_enumO("gpencil.draw", "mode", 'ERASER', text="Erase")
class VIEW3D_PT_tools_armatureedit_options(View3DPanel):
bl_context = "armature_edit"
bl_label = "Armature Options"
@@ -369,9 +357,6 @@ class VIEW3D_PT_tools_mballedit(View3DPanel):
row.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Line")
row.item_enumO("gpencil.draw", "mode", 'ERASER', text="Erase")
# ********** default tools for editmode_lattice ****************
@@ -454,6 +439,7 @@ class VIEW3D_PT_tools_posemode(View3DPanel):
row.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Line")
row.item_enumO("gpencil.draw", "mode", 'ERASER', text="Erase")
class VIEW3D_PT_tools_posemode_options(View3DPanel):
bl_context = "posemode"
bl_label = "Pose Options"