core.duplicate_drawing - remove debug print statements and unused code

This commit is contained in:
Andrej730
2025-04-25 14:56:33 +05:00
parent 30242d859e
commit 31a6c91c4b
-3
View File
@@ -318,11 +318,8 @@ def duplicate_drawing(
for new_elements in old_to_new.values():
# Remove the Blender object, since we haven't actually activated the duplicated drawing
for new_element in new_elements:
print("new element", new_element)
print("gonna remove", ifc.get_object(new_element))
blender.remove_object(ifc.get_object(new_element))
new_annotations.extend(new_elements)
new_annotation = set(new_annotations)
ifc.run("group.unassign_group", group=group, products=new_annotations)
ifc.run("group.assign_group", group=new_group, products=new_annotations)