Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM.G. Kishalmi <lmg@kishalmi.net>2011-02-23 15:02:43 +0300
committerM.G. Kishalmi <lmg@kishalmi.net>2011-02-23 15:02:43 +0300
commitf0f3d9a2fff6316b62634256e0cd46f508fb68a2 (patch)
tree332e0a743ca838cfbe334045cb0066707539faf4 /release
parentd7c29a0310f3709395a6de2a1ace6da395770aa6 (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.py30
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"