mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
cache also can have settings state
This commit is contained in:
parent
17957a760c
commit
0dc4f1a786
1 changed files with 4 additions and 0 deletions
|
|
@ -447,6 +447,7 @@ class CacheValues:
|
|||
self.data = None
|
||||
self.creation_time = None
|
||||
self.version = None
|
||||
self.settings_state = None
|
||||
|
||||
def data_copy(self):
|
||||
if not self.data:
|
||||
|
|
@ -458,6 +459,9 @@ class CacheValues:
|
|||
self.creation_time = datetime.datetime.now()
|
||||
self.version = version
|
||||
|
||||
def update_settings_state(self, settings_state):
|
||||
self.settings_state = settings_state
|
||||
|
||||
def update_from_document(self, document, version):
|
||||
data = {}
|
||||
if document:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue