fix: ignore strobe default value

This commit is contained in:
Swann 2020-11-04 22:55:17 +01:00
parent c00a7184ff
commit db4e495183
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
2 changed files with 6 additions and 2 deletions

View File

@ -127,7 +127,10 @@ class BlDatablock(ReplicatedDatablock):
if instance and hasattr(instance, 'uuid'):
instance.uuid = self.uuid
self.diff_method = DIFF_BINARY
if logging.getLogger().level == logging.DEBUG:
self.diff_method = DIFF_JSON
else:
self.diff_method = DIFF_BINARY
def resolve(self):
datablock_ref = None

View File

@ -32,6 +32,7 @@ def dump_sequence(sequence: bpy.types.Sequence) -> dict:
'select',
'select_left_handle',
'select_right_handle',
'strobe'
]
dumper.depth = 1
data = dumper.dump(sequence)
@ -83,7 +84,7 @@ def load_sequence(sequence_data: dict, sequence_editor: bpy.types.SequenceEditor
seq = {}
for i in range(sequence_data['input_count']):
seq[f"seq{i}"] = sequence_editor.sequences_all.get(sequence_data.get("input_{i}", None))
seq[f"seq{i+1}"] = sequence_editor.sequences_all.get(sequence_data.get(f"input_{i+1}", None))
sequence = sequence_editor.sequences.new_effect(name=strip_name,
type=strip_type,