refactor: remove print

fix: collection childrens loading
feat: replication version bump
This commit is contained in:
Swann 2019-08-27 11:07:13 +02:00
parent 15f5bfbc52
commit 0154fd2df5
3 changed files with 6 additions and 7 deletions

View File

@ -28,8 +28,7 @@ class BlCamera(BlDatablock):
self.pointer = bpy.data.cameras.get(self.buffer['name'])
def diff(self):
d = diff(self.dump(pointer=self.pointer),self.buffer)
print(d)
d = diff(self.dump(pointer=self.pointer), self.buffer)
return len(d)>1
bl_id = "cameras"

View File

@ -17,7 +17,7 @@ class BlCollection(BlDatablock):
def load(self, data, target):
# Load other meshes metadata
# dump_anything.load(target, data)
# link objects
for object in data["objects"]:
if object not in target.objects.keys():
@ -30,9 +30,9 @@ class BlCollection(BlDatablock):
# Link childrens
for collection in data["children"]:
if collection not in target.children.keys():
if bpy.data.collections.find(collection) == -1:
target.children.link(
bpy.data.collections[collection])
# if bpy.data.collections.find(collection) == -1:
target.children.link(
bpy.data.collections[collection])
for collection in target.children.keys():
if collection not in data["children"]:

@ -1 +1 @@
Subproject commit 414fc6629e90e2b3bd36d279e2a7ded8ade786da
Subproject commit 1d2614ccc396609dbf507e2d5c3d831704003491