adds color source
This commit is contained in:
parent
c0ab4bb7ad
commit
6fbf07b96c
10 changed files with 78 additions and 20 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import bpy
|
||||
|
||||
from ..types.colors import get_color
|
||||
from .. types.sources import get_source
|
||||
|
||||
|
||||
|
|
@ -20,7 +21,6 @@ class BakeToIDInfoPanel(bpy.types.Panel):
|
|||
|
||||
if props.selection_mode != 'SINGLE':
|
||||
layout.label(text="Selected Object-Count: " + str(len(context.selected_objects)))
|
||||
layout.separator()
|
||||
|
||||
if props.selection_mode == 'SINGLE':
|
||||
layout.label(text="ID-Total: " + str(source.estimate_ids([context.active_object])))
|
||||
|
|
@ -42,4 +42,8 @@ class BakeToIDInfoPanel(bpy.types.Panel):
|
|||
layout.label(text="Estimated ID-Average: 0")
|
||||
|
||||
if props.selection_mode == 'MULTIPLE_COMBINED':
|
||||
layout.label(text="ID-Total: " + str(source.estimate_ids(context.selected_objects)))
|
||||
layout.label(text="ID-Total: " + str(source.estimate_ids(context.selected_objects)))
|
||||
|
||||
color = get_color(props.colors)
|
||||
|
||||
layout.label(text="Colors available: " + str(color.get_count(props)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue