Skip to content

Commit 17ef3f8

Browse files
committed
use lock on init
1 parent 365cdd4 commit 17ef3f8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ayon_api/entity_hub.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,10 +1418,9 @@ class EntityData(dict):
14181418
"""
14191419
def __init__(self, *args, **kwargs) -> None:
14201420
super().__init__(*args, **kwargs)
1421-
self._orig_data = {
1422-
key: copy.deepcopy(value)
1423-
for key, value in self.items()
1424-
}
1421+
self._orig_data = {}
1422+
# Fill orig data
1423+
self.lock()
14251424

14261425
def get_changes(self) -> dict[str, Any]:
14271426
"""Changes in entity data.

0 commit comments

Comments
 (0)