needed to assign some values as bool's

This commit is contained in:
Campbell Barton 2009-11-22 22:09:06 +00:00
parent ab6b1a363f
commit b351d7804b
2 changed files with 2 additions and 2 deletions

@ -266,7 +266,7 @@ class MATERIAL_PT_options(MaterialButtonsPanel):
sub.itemL(text="Light Group:")
sub.itemR(mat, "light_group", text="")
row = sub.row()
row.active = mat.light_group
row.active = bool(mat.light_group)
row.itemR(mat, "light_group_exclusive", text="Exclusive")
if wide_ui:

@ -870,7 +870,7 @@ class TEXTURE_PT_pointdensity(TextureButtonsPanel):
col.itemR(pd, "object", text="")
sub = col.column()
sub.enabled = pd.object
sub.enabled = bool(pd.object)
if pd.object:
sub.itemL(text="System:")
sub.item_pointerR(pd, "particle_system", pd.object, "particle_systems", text="")