Materials UI - update material styles data on expanding categories

otherwise style data was missing for materials that were previously hidden
This commit is contained in:
Andrej730
2024-10-04 11:36:45 +05:00
parent e810dc76e0
commit 69781daa6b
@@ -749,6 +749,8 @@ class ExpandMaterialCategory(bpy.types.Operator):
if category.name == self.category:
props.active_material_index = index
core.load_materials(tool.Material, props.material_type)
# Update UI data as material_styles_data depends on props.materials.
bonsai.bim.handler.refresh_ui_data()
return {"FINISHED"}