feat: new tests

fix: curve diff errors
fix: metaball diff error
fix: scene error
This commit is contained in:
Swann
2020-04-08 18:40:02 +02:00
parent f5452b8aee
commit 94aeff7b35
8 changed files with 144 additions and 8 deletions
+14 -1
View File
@@ -87,7 +87,20 @@ class BlCurve(BlDatablock):
def _dump_implementation(self, data, instance=None):
assert(instance)
dumper = Dumper()
# Conflicting attributes
# TODO: remove them with the NURBS support
dumper.exclude_filter = [
'users',
'order_u',
'order_v',
'point_count_v',
'point_count_u',
'active_textbox'
]
if instance.use_auto_texspace:
dumper.exclude_filter.extend([
'texspace_location',
'texspace_size'])
data = dumper.dump(instance)
data['splines'] = {}
+9 -6
View File
@@ -88,12 +88,15 @@ class BlMetaball(BlDatablock):
assert(instance)
dumper = Dumper()
dumper.depth = 1
dumper.exclude_filter = [
"is_editmode",
"is_evaluated",
"is_embedded_data",
"is_library_indirect",
"name_full"
dumper.include_filter = [
'name',
'resolution',
'render_resolution',
'threshold',
'update_method',
'use_auto_texspace',
'texspace_location',
'texspace_size'
]
data = dumper.dump(instance)
-1
View File
@@ -37,7 +37,6 @@ class BlScene(BlDatablock):
return instance
def _load_implementation(self, data, target):
target = self.instance
# Load other meshes metadata
loader = Loader()
loader.load(target, data)