adds palette support

This commit is contained in:
Michel Fedde 2024-01-31 19:23:55 +01:00
parent feb1887a7d
commit c16e4c268b
7 changed files with 59 additions and 35 deletions

View file

@ -47,7 +47,8 @@ class BakeToIDMapOperator(bpy.types.Operator):
return source.get_targets([context.active_object])
if props.selection_mode == 'MULTIPLE_COMBINED':
return source.get_targets(context.selected_objects)
filtered_object = filter(lambda x: x.type == 'MESH', context.selected_objects)
return source.get_targets(list(filtered_object))
if props.selection_mode == 'MULTIPLE_SEPARATE':
result = []