Light need to be fix
This commit is contained in:
parent
d717e01f3f
commit
4bcfa2bef7
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user