revert: image source replication until a proper fix is done
This commit is contained in:
@ -44,7 +44,7 @@ from . import environment
|
|||||||
|
|
||||||
|
|
||||||
DEPENDENCIES = {
|
DEPENDENCIES = {
|
||||||
("replication", '0.1.30'),
|
("replication", '0.1.31'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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',
|
||||||
|
Reference in New Issue
Block a user