* Added greying out for Bound Box Menu.
authorThomas Dinges <blender@dingto.org>
Thu, 29 Oct 2009 21:31:00 +0000 (21:31 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 29 Oct 2009 21:31:00 +0000 (21:31 +0000)
release/scripts/ui/buttons_object.py

index 98ac462f2d43a2aa71c14972262bfe3470a9d343..78aa52a647e48b2f87532d25872840ce02406fa0 100644 (file)
@@ -136,7 +136,9 @@ class OBJECT_PT_display(ObjectButtonsPanel):
                col = split.column()
                row = col.row()
                row.itemR(ob, "draw_bounds", text="Bounds")
-               row.itemR(ob, "draw_bounds_type", text="")
+               sub = row.row()
+               sub.active = ob.draw_bounds
+               sub.itemR(ob, "draw_bounds_type", text="")
 
                flow = layout.column_flow()
                flow.itemR(ob, "draw_name", text="Name")