diff options
author | Robert Holcomb <bob_holcomb@hotmail.com> | 2010-03-24 02:36:24 +0300 |
---|---|---|
committer | Robert Holcomb <bob_holcomb@hotmail.com> | 2010-03-24 02:36:24 +0300 |
commit | fffb9cb1a2846f77378eee57d787c2b53539c5b6 (patch) | |
tree | ebd5b3fdae127f5b66152b662dc8397dfcb79f56 /release | |
parent | 4532b0ba2aa2cf1bd85cb11814748fe3aca4e5bd (diff) |
oops forgot this!
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_image.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index 1e37cb16f81..ac6a0f30324 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -406,6 +406,20 @@ class IMAGE_PT_view_histogram(bpy.types.Panel): layout.template_histogram(sima, "histogram") +class IMAGE_PT_sample_line(bpy.types.Panel): + bl_space_type = 'IMAGE_EDITOR' + bl_region_type = 'PREVIEW' + bl_label = "Sample Line" + + def poll(self, context): + sima = context.space_data + return (sima and sima.image) + + def draw(self, context): + layout = self.layout + layout.operator("image.sample_line") + sima = context.space_data + layout.template_histogram(sima, "sample_histogram") class IMAGE_PT_view_properties(bpy.types.Panel): bl_space_type = 'IMAGE_EDITOR' @@ -592,7 +606,8 @@ classes = [ IMAGE_PT_paint_curve, IMAGE_PT_game_properties, IMAGE_PT_view_properties, - IMAGE_PT_view_histogram] + IMAGE_PT_view_histogram, + IMAGE_PT_sample_line] def register(): |