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:
authorDalai Felinto <dfelinto@gmail.com>2011-11-30 01:05:18 +0400
committerDalai Felinto <dfelinto@gmail.com>2011-11-30 01:05:18 +0400
commit5763e6ce8518bf878aa9212b5196fd0503f466d2 (patch)
tree0b30ff5bf4879b5cc92471dd4aa046c039da5294 /release
parent8bff75697446a98d42a643aa8f65fa663d967765 (diff)
option to disable/enable individual background images
*** use-case: "I have 10 reference images that overlap each other and every time I want to see one, I need to change the transparency of all the others. therefore it would be nice to have a little button by each menu to allow enable/disabling individual background images" To avoid subversioning bump I created a define that is negative (DISABLED) and of course a rna that is a boolean_negative. Talked with Campbell and he actually prefers this way over do_version, so there it goes.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 55437d63a5d..6ec28f24e76 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2300,6 +2300,12 @@ class VIEW3D_PT_background_image(Panel):
row.prop(bg.clip, "name", text="", emboss=False)
else:
row.label(text="Not Set")
+
+ if bg.show_background_image:
+ row.prop(bg, "show_background_image", text="", emboss=False, icon='RESTRICT_VIEW_OFF')
+ else:
+ row.prop(bg, "show_background_image", text="", emboss=False, icon='RESTRICT_VIEW_ON')
+
row.operator("view3d.background_image_remove", text="", emboss=False, icon='X').index = i
box.prop(bg, "view_axis", text="Axis")