fix: env setup

fix: gpencil api change
This commit is contained in:
Swann Martinez
2019-05-23 16:49:32 +02:00
parent 53f0811b94
commit d53165f17e
6 changed files with 20923 additions and 15 deletions

View File

@ -87,7 +87,7 @@ def load(key, value):
elif target_type == 'Material':
load_material(target=target, data=value,
create=True)
elif target_type == 'Grease Pencil':
elif target_type == 'GreasePencil':
load_gpencil(target=target, data=value,
create=True)
elif target_type == 'Scene':
@ -530,7 +530,7 @@ def dump(key):
if target_type == 'Material':
data = dump_datablock(target, 2)
dump_datablock_attibute(target, ['node_tree'], 7, data)
elif target_type == 'Grease Pencil':
elif target_type == 'GreasePencil':
data = dump_datablock(target, 2)
dump_datablock_attibute(
target, ['layers'], 9, data)