fix: scene differential error
fix: bl_file loading error feat: update replication version
This commit is contained in:
parent
410d8d2f1a
commit
f6a39e4290
@ -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
|
||||
|
||||
|
@ -44,7 +44,7 @@ from . import environment, utils
|
||||
|
||||
|
||||
DEPENDENCIES = {
|
||||
("replication", '0.0.21a8'),
|
||||
("replication", '0.0.21a9'),
|
||||
}
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user