diff --git a/src/blenderbim/blenderbim/tool/material.py b/src/blenderbim/blenderbim/tool/material.py index a6e0391030..e49b6a3d61 100644 --- a/src/blenderbim/blenderbim/tool/material.py +++ b/src/blenderbim/blenderbim/tool/material.py @@ -40,7 +40,9 @@ def disable_editing_materials(cls): @classmethod def duplicate_material(cls, material: ifcopenshell.entity_instance) -> ifcopenshell.entity_instance: - return ifcopenshell.util.element.copy_deep(tool.Ifc.get(), material) + new_material = ifcopenshell.util.element.copy_deep(tool.Ifc.get(), material) + new_material.Name = material.Name + "_copy" + return new_material @classmethod def enable_editing_materials(cls): diff --git a/src/blenderbim/blenderbim/tool/style.py b/src/blenderbim/blenderbim/tool/style.py index 88d6c23a77..9ff8c9aa4c 100644 --- a/src/blenderbim/blenderbim/tool/style.py +++ b/src/blenderbim/blenderbim/tool/style.py @@ -62,7 +62,9 @@ def disable_editing_styles(cls): @classmethod def duplicate_style(cls, style: ifcopenshell.entity_instance) -> ifcopenshell.entity_instance: - return ifcopenshell.util.element.copy_deep(tool.Ifc.get(), style) + new_style = ifcopenshell.util.element.copy_deep(tool.Ifc.get(), style) + new_style.Name = style.Name + "_copy" + return new_style @classmethod def enable_editing(cls, obj):