diff options
author | Thomas Dinges <blender@dingto.org> | 2009-05-29 12:43:44 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-05-29 12:43:44 +0400 |
commit | 7c2b2f55807b3f9faf84e5506944ba6d1bda18dd (patch) | |
tree | d0052965f7293695ad11864f215e0470e64a5d19 /release | |
parent | 02e719079f1abf625c4e270c43b8ccb0071f1ca4 (diff) |
2.5 Buttons:
* Example code for greying out individual items.
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_scene.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/release/ui/buttons_scene.py b/release/ui/buttons_scene.py index 1b892a5b2fb..83836f8e781 100644 --- a/release/ui/buttons_scene.py +++ b/release/ui/buttons_scene.py @@ -23,11 +23,12 @@ class RENDER_PT_shading(RenderButtonsPanel): sub.itemR(rd, "render_envmaps", text="Environment Map") # sub.itemR(rd, "render_radiosity", text="Radio") - sub = split.column() - sub.itemR(rd, "render_raytracing", text="Ray Tracing") - if (rd.render_raytracing): - sub.itemR(rd, "octree_resolution", text="Octree") - sub.itemR(rd, "dither_intensity", text="Dither", slider=True) + col = split.column() + colsub = col.column() + colsub.active = rd.render_raytracing + colsub.itemR(rd, "render_raytracing", text="Ray Tracing") + colsub.itemR(rd, "octree_resolution", text="Octree") + col.itemR(rd, "dither_intensity", text="Dither", slider=True) class RENDER_PT_output(RenderButtonsPanel): __label__ = "Output" |