mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge e51cfa2880 into b6b2726795
This commit is contained in:
commit
bed6b1d5ca
1 changed files with 10 additions and 4 deletions
|
|
@ -1125,8 +1125,11 @@ class IWorkfileHost(AbstractHost):
|
|||
version = comment = None
|
||||
if workfile_entity is not None:
|
||||
_data = workfile_entity["data"]
|
||||
version = _data.get("version")
|
||||
comment = _data.get("comment")
|
||||
version = None
|
||||
comment = None
|
||||
if _data is not None:
|
||||
version = _data.get("version")
|
||||
comment = _data.get("comment")
|
||||
|
||||
if version is None:
|
||||
parsed_data = data_parser.parse_data(filename)
|
||||
|
|
@ -1152,8 +1155,11 @@ class IWorkfileHost(AbstractHost):
|
|||
continue
|
||||
|
||||
_data = workfile_entity["data"]
|
||||
version = _data.get("version")
|
||||
comment = _data.get("comment")
|
||||
version = None
|
||||
comment = None
|
||||
if _data is not None:
|
||||
version = _data.get("version")
|
||||
comment = _data.get("comment")
|
||||
if version is None:
|
||||
filename = os.path.basename(rootless_path)
|
||||
parsed_data = data_parser.parse_data(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue