mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
changed version handling
This commit is contained in:
parent
6114f6aff1
commit
ab0ea46f89
1 changed files with 7 additions and 4 deletions
|
|
@ -368,10 +368,13 @@ class CreatedInstance:
|
|||
self._data["creator_identifier"] = creator.identifier
|
||||
|
||||
# QUESTION handle version of instance here or in creator?
|
||||
if new:
|
||||
self._data["version"] = 1
|
||||
else:
|
||||
self._data["version"] = data.get("version")
|
||||
version = None
|
||||
if not new:
|
||||
version = data.get("version")
|
||||
|
||||
if version is None:
|
||||
version = 1
|
||||
self._data["version"] = version
|
||||
|
||||
# Stored creator specific attribute values
|
||||
# {key: value}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue