forked from bartvdbraak/blender
needed to assign some values as bool's
This commit is contained in:
parent
ab6b1a363f
commit
b351d7804b
@ -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="")
|
||||
|
Loading…
Reference in New Issue
Block a user