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
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
3 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

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