mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Fix #2839. Bug where undo system could store edits of IFC primitives.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user