Fix #2839. Bug where undo system could store edits of IFC primitives.

This commit is contained in:
Dion Moult
2023-03-09 18:18:56 +11:00
parent 3e2ca328d2
commit 38019288de
@@ -89,6 +89,7 @@ class Transaction:
self.operations.append({"action": "create", "value": self.serialise_entity_instance(element)}) self.operations.append({"action": "create", "value": self.serialise_entity_instance(element)})
def store_edit(self, element, index, value): def store_edit(self, element, index, value):
if element.id():
self.operations.append( self.operations.append(
{ {
"action": "edit", "action": "edit",