feat: new tests
fix: curve diff errors fix: metaball diff error fix: scene error
This commit is contained in:
@@ -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'] = {}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user