@@ -2561,27 +2561,11 @@ def remove_preview(mat, advanced=False):
25612561# pass
25622562
25632563def layer_preview_mode_type_items (self , context ):
2564- #node = get_active_ypaint_node()
2565- #yp = node.node_tree.yp
2566-
25672564 items = (
25682565 ('LAYER' , 'Layer' , '' , lib .get_icon ('texture' ), 0 ),
25692566 ('MASK' , 'Mask' , '' , lib .get_icon ('mask' ), 1 ),
25702567 ('SPECIFIC_MASK' , 'Specific Mask' , '' , lib .get_icon ('mask' ), 2 )
25712568 )
2572-
2573- #for i, ch in enumerate(yp.channels):
2574- # #if hasattr(lib, 'custom_icons'):
2575- # if not is_bl_newer_than(2, 80):
2576- # icon_name = lib.channel_custom_icon_dict[ch.type]
2577- # items.append((str(i), ch.name, '', lib.custom_icons[icon_name].icon_id, i))
2578- # else: items.append((str(i), ch.name, '', lib.channel_icon_dict[ch.type], i))
2579-
2580- ##if hasattr(lib, 'custom_icons'):
2581- #if not is_bl_newer_than(2, 80):
2582- # items.append(('-1', 'All Channels', '', lib.custom_icons['channels'].icon_id, len(items)))
2583- #else: items.append(('-1', 'All Channels', '', 'GROUP_VERTEX', len(items)))
2584-
25852569 return items
25862570
25872571def update_layer_preview_mode (self , context ):
0 commit comments