Skip to content
Snippets Groups Projects
Commit 33f28032 authored by Hock, Martin's avatar Hock, Martin
Browse files

Fix clone functionality for the dict.update method

parent a513e099
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,8 @@ class LegoComponent: ...@@ -53,7 +53,8 @@ class LegoComponent:
def clone(self, new_label: str = None) -> LegoComponent: def clone(self, new_label: str = None) -> LegoComponent:
if new_label is None: if new_label is None:
new_label = self.properties.label new_label = self.properties.label
clone = LegoComponent(None, self.properties, label=new_label) clone = LegoComponent(None, None, self.properties)
clone.properties['label'] = new_label
return clone return clone
def get_root_assembly(self): def get_root_assembly(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment