fix: construct error

This commit is contained in:
Swann 2020-12-29 17:38:21 +01:00
parent f0c1fe9c87
commit 4b1499f6ae
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ class BlFile(ReplicatedDatablock):
self.preferences = utils.get_preferences()
self.diff_method = DIFF_BINARY
def resolve(self):
def resolve(self, construct = True):
if self.data:
self.instance = Path(get_filepath(self.data['name']))

View File

@ -143,10 +143,10 @@ class BlSequencer(BlDatablock):
return scene.sequence_editor
def resolve(self):
def resolve(self, construct = True):
scene = bpy.data.scenes.get(self.data['name'], None)
if scene:
if scene.sequence_editor is None:
if scene.sequence_editor is None and construct:
self.instance = self._construct(self.data)
else:
self.instance = scene.sequence_editor