revert: image source replication until a proper fix is done

This commit is contained in:
Swann
2021-04-23 15:35:19 +02:00
parent e8cd271bd8
commit d9d8ca7ca0
3 changed files with 5 additions and 3 deletions

View File

@ -44,7 +44,7 @@ from . import environment
DEPENDENCIES = { DEPENDENCIES = {
("replication", '0.1.30'), ("replication", '0.1.31'),
} }

View File

@ -134,6 +134,8 @@ class BlFile(ReplicatedDatablock):
if self.preferences.clear_memory_filecache: if self.preferences.clear_memory_filecache:
return False return False
else: else:
if not self.instance:
return False
memory_size = sys.getsizeof(self.data['file'])-33 memory_size = sys.getsizeof(self.data['file'])-33
disk_size = self.instance.stat().st_size disk_size = self.instance.stat().st_size
return memory_size != disk_size return memory_size != disk_size

View File

@ -66,7 +66,7 @@ class BlImage(BlDatablock):
loader = Loader() loader = Loader()
loader.load(data, target) loader.load(data, target)
target.source = data['source'] target.source = 'FILE'
target.filepath_raw = get_filepath(data['filename']) target.filepath_raw = get_filepath(data['filename'])
color_space_name = data["colorspace_settings"]["name"] color_space_name = data["colorspace_settings"]["name"]
@ -86,7 +86,7 @@ class BlImage(BlDatablock):
dumper.depth = 2 dumper.depth = 2
dumper.include_filter = [ dumper.include_filter = [
"name", "name",
'source', # 'source',
'size', 'size',
'height', 'height',
'alpha', 'alpha',