Light need to be fix

This commit is contained in:
Swann Martinez 2019-05-10 17:15:21 +02:00
parent d717e01f3f
commit 4bcfa2bef7
No known key found for this signature in database
GPG Key ID: 414CCAFD8DA720E1
2 changed files with 3 additions and 6 deletions

View File

@ -481,8 +481,6 @@ def load_gpencil_layer(target=None, data=None, create=False):
dump_anything.load(tpoint, p)
def load_gpencil(target=None, data=None, create=False):
try:
if target is None and create:
@ -554,7 +552,7 @@ def dump(key):
elif target_type == 'Camera':
data = dump_datablock(target, 1)
elif target_type == 'Light':
elif 'Light' in target_type :
data = dump_datablock(target, 1)
elif target_type == 'Mesh':
data = dump_datablock(target, 2)

View File

@ -593,19 +593,18 @@ def depsgraph_update(scene):
parent_id = ctx.collection.id if ctx.collection.id != 'None' else ctx.scene.id
if parent_id == username or parent_id == 'Common':
item.id = username
key = "{}/{}".format(item.__class__.__name__, item.name)
client_instance.set(key)
logger.info("APPEND {}".format(key))
else:
history.put("etst")
try:
item = get_datablock(update,ctx)
print(item)
getattr(bpy.data, helpers.CORRESPONDANCE[update.id.__class__.__name__]).remove(item)
except:
print("asdasdasd")
pass
break
update_selected_object(ctx)