mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 05:46:51 +00:00
Oops, fix broken #4771 by mistake
This commit is contained in:
@@ -745,7 +745,6 @@ class ExpandMaterialCategory(bpy.types.Operator):
|
|||||||
category.is_expanded = True
|
category.is_expanded = True
|
||||||
if category.name == self.category:
|
if category.name == self.category:
|
||||||
props.active_material_index = index
|
props.active_material_index = index
|
||||||
break
|
|
||||||
core.load_materials(tool.Material, props.material_type)
|
core.load_materials(tool.Material, props.material_type)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
@@ -775,7 +774,6 @@ class ContractMaterialCategory(bpy.types.Operator):
|
|||||||
category.is_expanded = False
|
category.is_expanded = False
|
||||||
if category.name == self.category:
|
if category.name == self.category:
|
||||||
props.active_material_index = index
|
props.active_material_index = index
|
||||||
break
|
|
||||||
core.load_materials(tool.Material, props.material_type)
|
core.load_materials(tool.Material, props.material_type)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user