# Path: korman/exporter/mesh.py
# _VERTEX_COLOR_LAYERS = {"col", "color", "colour"}


import bpy
from .. import ui_list
from ...exporter.mesh import _VERTEX_COLOR_LAYERS
        pass
    else:
        scene = context.scene.plasma_scene
        decal_mgr = next((i for i in scene.decal_managers if i.display_name == mgr_ref), None)

        layout.alert = decal_mgr is None
        layout.prop_search(mgr_ref, "name", scene, "decal_managers", icon="BRUSH_DATA")
        layout.alert = False

def decal_receive(modifier, layout, context):
    ui_list.draw_modifier_list(layout, "DecalMgrListUI", modifier, "managers",
                               "active_manager_index", rows=2, maxrows=3)
    try:
        mgr_ref = modifier.managers[modifier.active_manager_index]
    except:
        pass
    else:
        scene = context.scene.plasma_scene
        decal_mgr = next((i for i in scene.decal_managers if i.display_name == mgr_ref), None)

        layout.alert = decal_mgr is None
        layout.prop_search(mgr_ref, "name", scene, "decal_managers", icon="BRUSH_DATA")

def dynatext(modifier, layout, context):
    col = layout.column()
    col.alert = modifier.texture is None
    col.prop(modifier, "texture")
    if modifier.texture is None:
        col.label("You must specify a blank image texture to draw on.", icon="ERROR")


# Path: korman/exporter/mesh.py
# _VERTEX_COLOR_LAYERS = {"col", "color", "colour"}


# Path: korman/ui/modifiers/render.py
import bpy
from .. import ui_list
from ...exporter.mesh import _VERTEX_COLOR_LAYERS

        pass
    else:
        scene = context.scene.plasma_scene
        decal_mgr = next((i for i in scene.decal_managers if i.display_name == mgr_ref), None)

        layout.alert = decal_mgr is None
        layout.prop_search(mgr_ref, "name", scene, "decal_managers", icon="BRUSH_DATA")
        layout.alert = False

def decal_receive(modifier, layout, context):
    ui_list.draw_modifier_list(layout, "DecalMgrListUI", modifier, "managers",
                               "active_manager_index", rows=2, maxrows=3)
    try:
        mgr_ref = modifier.managers[modifier.active_manager_index]
    except:
        pass
    else:
        scene = context.scene.plasma_scene
        decal_mgr = next((i for i in scene.decal_managers if i.display_name == mgr_ref), None)

        layout.alert = decal_mgr is None
        layout.prop_search(mgr_ref, "name", scene, "decal_managers", icon="BRUSH_DATA")

def dynatext(modifier, layout, context):
    col = layout.column()
    col.alert = modifier.texture is None
    col.prop(modifier, "texture")
    if modifier.texture is None:
        col.label("You must specify a blank image texture to draw on.", icon="ERROR")


    split = layout.split()