diff options
author | M.G. Kishalmi <lmg@kishalmi.net> | 2011-02-23 15:02:43 +0300 |
---|---|---|
committer | M.G. Kishalmi <lmg@kishalmi.net> | 2011-02-23 15:02:43 +0300 |
commit | f0f3d9a2fff6316b62634256e0cd46f508fb68a2 (patch) | |
tree | 332e0a743ca838cfbe334045cb0066707539faf4 /release | |
parent | d7c29a0310f3709395a6de2a1ace6da395770aa6 (diff) |
added image-editor operators:
Invert Image Colors (RGB)
--
Invert Red Channel
Invert Green Channel
Invert Blue Channel
Invert Alpha Channel
mostly because of the recent changes in normalmap channels,
so users can adopt old bakes quickly.
though they might aswell prove useful in other situations.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_image.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index 9687bcfaadf..09229fb8105 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -128,6 +128,10 @@ class IMAGE_MT_image(bpy.types.Menu): layout.operator("image.external_edit", "Edit Externally") + layout.separator() + + layout.menu("IMAGE_MT_image_invert") + if not show_render: layout.separator() @@ -147,6 +151,32 @@ class IMAGE_MT_image(bpy.types.Menu): layout.prop(sima, "use_image_paint") +class IMAGE_MT_image_invert(bpy.types.Menu): + bl_label = "Invert" + + def draw(self, context): + layout = self.layout + + op = layout.operator("image.invert", text="Invert Image Colors"); + op.inv_r = True; + op.inv_g = True; + op.inv_b = True; + + layout.separator() + + op = layout.operator("image.invert", text="Invert Red Channel"); + op.inv_r = True; + + op = layout.operator("image.invert", text="Invert Green Channel"); + op.inv_g = True; + + op = layout.operator("image.invert", text="Invert Blue Channel"); + op.inv_b = True; + + op = layout.operator("image.invert", text="Invert Alpha Channel"); + op.inv_a = True; + + class IMAGE_MT_uvs_showhide(bpy.types.Menu): bl_label = "Show/Hide Faces" |