refactor: remove print
fix: collection childrens loading feat: replication version bump
This commit is contained in:
parent
15f5bfbc52
commit
0154fd2df5
@ -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"
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user