diff --git a/functions/classes.py b/functions/classes.py index 3a51f0018d6e91eef85133e001d6419c169ab80c..c86206f196a3f028bfb1b10fdaa9de0a01004940 100644 --- a/functions/classes.py +++ b/functions/classes.py @@ -53,7 +53,8 @@ class LegoComponent: def clone(self, new_label: str = None) -> LegoComponent: if new_label is None: 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 def get_root_assembly(self):