fix: scene differential error

fix: bl_file loading error
feat: update replication version
This commit is contained in:
Swann 2020-09-23 14:24:57 +02:00
parent 410d8d2f1a
commit f6a39e4290
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
7 changed files with 12 additions and 5 deletions

View File

@ -76,6 +76,7 @@ All notable changes to this project will be documented in this file.
- Sync collection offset
- Sync camera orthographic scale
- Logging basic configuration (file output and level)
- Object visibility type replication
### Changed

View File

@ -44,7 +44,7 @@ from . import environment, utils
DEPENDENCIES = {
("replication", '0.0.21a8'),
("replication", '0.0.21a9'),
}

View File

@ -74,6 +74,10 @@ class BlFile(ReplicatedDatablock):
if self.data:
self.instance = Path(get_filepath(self.data['name']))
if not self.instance.exists():
logging.debug("File don't exist, loading it.")
self._load(self.data, self.instance)
def push(self, socket, identity=None):
super().push(socket, identity=None)

View File

@ -61,6 +61,6 @@ class BlFont(BlDatablock):
if self.instance.filepath and self.instance.filepath != '<builtin>':
ensure_unpacked(self.instance)
deps.append(Path(self.instance.filepath))
deps.append(Path(bpy.path.abspath(self.instance.filepath)))
return deps

View File

@ -118,6 +118,6 @@ class BlImage(BlDatablock):
self.instance.filepath = get_filepath(filename)
self.instance.save()
deps.append(Path(self.instance.filepath))
deps.append(Path(bpy.path.abspath(self.instance.filepath)))
return deps

View File

@ -114,7 +114,9 @@ class BlScene(BlDatablock):
'preview_samples',
'sample_clamp_indirect',
'samples',
'volume_bounces'
'volume_bounces',
'file_extension',
'use_denoising'
]
data['eevee'] = scene_dumper.dump(instance.eevee)
data['cycles'] = scene_dumper.dump(instance.cycles)

View File

@ -58,6 +58,6 @@ class BlSound(BlDatablock):
if self.instance.filepath and self.instance.filepath != '<builtin>':
ensure_unpacked(self.instance)
deps.append(Path(self.instance.filepath))
deps.append(Path(bpy.path.abspath(self.instance.filepath)))
return deps