From b7fa08f88a260bbd9008c11875cb14052d6c7eb1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 22 Feb 2014 11:14:15 +1100 Subject: Code cleanup: style --- release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 1 + release/scripts/startup/bl_ui/space_clip.py | 1 + release/scripts/startup/bl_ui/space_image.py | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'release') 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 @@ # + 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' -- cgit v1.2.3