mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 17:20:04 +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:
|
if category.name == self.category:
|
||||||
props.active_material_index = index
|
props.active_material_index = index
|
||||||
core.load_materials(tool.Material, props.material_type)
|
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"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user