fix automerge - force set color

1.1.4

- Changed: force set color by prefix if autobuild option swiched on
- fixed: problem with auto merge adjacent layers
This commit is contained in:
pullusb
2023-01-11 18:54:33 +01:00
parent b1cc4fa5d7
commit 0eea0661bc
5 changed files with 27 additions and 7 deletions
+3
View File
@@ -379,12 +379,15 @@ def export_gp_objects(oblist, exclude_list=[], scene=None):
oblist = [oblist]
if isinstance(exclude_list, str):
exclude_list = [p.strip() for p in exclude_list.split(',')]
# print('exclude_list: ', exclude_list)
for ob in oblist:
for l in ob.data.layers:
# if l.hide:
# continue
if l.hide or any(x + '_' in l.info for x in exclude_list): # exclude hided ?
print(f'Exclude export: {ob.name} : {l.info}')
l.viewlayer_render = fn.get_view_layer('exclude', scene=scene).name # assign "exclude"
continue