mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
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:
@@ -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"}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user