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:
@@ -437,12 +437,20 @@ def group_adjacent_layer_prefix_rlayer(ob, excluded_prefix=[], first_name=True):
|
||||
]
|
||||
|
||||
for prefix, layer_grp in adjacent_prefix_groups:
|
||||
## Remove layer that are in excluded viewlayer
|
||||
## Else None/exclusion vl can expand rest of the adjacent layers
|
||||
for l in reversed(layer_grp):
|
||||
if not l.viewlayer_render or l.viewlayer_render == 'exclude':
|
||||
print(f'prefix "{prefix}": remove "{l.info}" from grouping adjacent layers')
|
||||
layer_grp.remove(l) # remove traget the layer directly
|
||||
|
||||
if len(layer_grp) < 2:
|
||||
continue
|
||||
if not prefix or prefix in excluded_prefix:
|
||||
continue
|
||||
|
||||
ref = layer_grp[0] if first_name else layer_grp[-1]
|
||||
|
||||
merge_gplayer_viewlayers(ob, act=ref, layers=layer_grp)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user