fix: None image

This commit is contained in:
Swann
2020-07-28 12:05:26 +02:00
parent 99b2dc0539
commit ee83e61b09
3 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ from . import environment, utils
# TODO: remove dependency as soon as replication will be installed as a module
DEPENDENCIES = {
("replication", '0.0.19'),
("replication", '0.0.20'),
("deepdiff", '5.0.1'),
}

View File

@ -92,6 +92,7 @@ class BlArmature(BlDatablock):
new_bone.head = bone_data['head_local']
new_bone.tail_radius = bone_data['tail_radius']
new_bone.head_radius = bone_data['head_radius']
new_bone.roll = bone_data['roll']
if 'parent' in bone_data:
new_bone.parent = target.edit_bones[data['bones']
@ -123,7 +124,8 @@ class BlArmature(BlDatablock):
'use_connect',
'parent',
'name',
'layers'
'layers',
'roll',
]
data = dumper.dump(instance)

View File

@ -157,7 +157,7 @@ class BlObject(BlDatablock):
img_key = data.get('data')
if target.data is None and img_key:
target.data = bpy.data.images[img_key]
target.data = bpy.data.images.get(img_key, None)
def _dump_implementation(self, data, instance=None):
assert(instance)