diff --git a/release/scripts/ui/properties_material.py b/release/scripts/ui/properties_material.py index f9e3eebfb8f..b89e1fe2ade 100644 --- a/release/scripts/ui/properties_material.py +++ b/release/scripts/ui/properties_material.py @@ -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: diff --git a/release/scripts/ui/properties_texture.py b/release/scripts/ui/properties_texture.py index 54a5c79ced5..78784ee1cf1 100644 --- a/release/scripts/ui/properties_texture.py +++ b/release/scripts/ui/properties_texture.py @@ -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="")