fix: gpencil material dump
This commit is contained in:
parent
1456380e4a
commit
d8adbd1f57
@ -607,8 +607,8 @@ def dump(key):
|
||||
data = dump_datablock_attibute(target,["name",'size','height','alpha','float_buffer','filepath','source'], 2, data)
|
||||
elif target_type == 'Material':
|
||||
data = dump_datablock(target, 2)
|
||||
dump_datablock_attibute(target.node_tree, ["nodes","links"] , 3, data['node_tree'])
|
||||
logger.debug("Material {} dumped".format(key))
|
||||
if target.node_tree:
|
||||
dump_datablock_attibute(target.node_tree, ["nodes","links"] , 3, data['node_tree'])
|
||||
elif target_type == 'GreasePencil':
|
||||
data = dump_datablock(target, 2)
|
||||
dump_datablock_attibute(
|
||||
|
@ -87,8 +87,6 @@ def update_client_selected_object(context):
|
||||
client_data[0][1]['active_objects'] = []
|
||||
client.instance.set(client_key, client_data[0][1])
|
||||
|
||||
# TODO: cleanup
|
||||
|
||||
|
||||
def init_datablocks():
|
||||
for datatype in environment.rtypes:
|
||||
@ -471,7 +469,6 @@ def toogle_update_dirty(context, update):
|
||||
data_ref = get_datablock_from_update(update, context)
|
||||
|
||||
if data_ref:
|
||||
logger.debug(update.id.bl_rna.__class__.__name__)
|
||||
data_ref.is_dirty = True
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user