diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-22 04:14:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-22 04:14:15 +0400 |
commit | b7fa08f88a260bbd9008c11875cb14052d6c7eb1 (patch) | |
tree | 6b4a90e6fdbf6727f224a9130082b2dc027a5088 /release/scripts | |
parent | 1a79abdad2443ff9f12e7efd95ee78a264a9d60a (diff) |
Code cleanup: style
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 1 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_clip.py | 1 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 7 |
3 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 08796eeec0e..97173f8c305 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -18,6 +18,7 @@ # <pep8 compliant> + class GreasePencilPanel(): # subclass must set # bl_space_type = 'IMAGE_EDITOR' diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index 9114a31923f..dc01c2c8f3d 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -23,6 +23,7 @@ from bpy.types import Panel, Header, Menu, UIList from bpy.app.translations import pgettext_iface as iface_ from bl_ui.properties_grease_pencil_common import GreasePencilPanel + class CLIP_UL_tracking_objects(UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 529cea1935d..3571759aa1f 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -45,6 +45,7 @@ class BrushButtonsPanel: toolsettings = context.tool_settings.image_paint return sima.show_paint and toolsettings.brush + class UVToolsPanel: bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'TOOLS' @@ -55,6 +56,7 @@ class UVToolsPanel: sima = context.space_data return sima.show_uvedit and not context.tool_settings.use_uv_sculpt + class IMAGE_MT_view(Menu): bl_label = "View" @@ -494,6 +496,7 @@ class IMAGE_PT_mask(MASK_PT_mask, Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' + class IMAGE_PT_mask_layers(MASK_PT_layers, Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' @@ -653,9 +656,10 @@ class IMAGE_PT_tools_transform_uvs(Panel, UVToolsPanel): col.operator("transform.shear") + class IMAGE_PT_paint(Panel, ImagePaintPanel): bl_label = "Paint" - + @classmethod def poll(cls, context): sima = context.space_data @@ -986,6 +990,7 @@ class IMAGE_PT_tools_mask(MASK_PT_tools, Panel): # --- end mask --- + class IMAGE_PT_view_histogram(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'TOOLS' |