From 1e3855790e6a8656081a387ca9da4de03a5cc84f Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 4 Feb 2020 11:51:58 -0500 Subject: [PATCH] Add icons for decals. --- korman/ui/modifiers/render.py | 6 +++--- korman/ui/ui_scene.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/korman/ui/modifiers/render.py b/korman/ui/modifiers/render.py index fa4e5f6..64d3c9b 100644 --- a/korman/ui/modifiers/render.py +++ b/korman/ui/modifiers/render.py @@ -21,7 +21,7 @@ from ...exporter.mesh import _VERTEX_COLOR_LAYERS class DecalMgrListUI(bpy.types.UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_property, index=0, flt_flag=0): if item.name: - layout.label(item.name) + layout.label(item.name, icon="BRUSH_DATA") layout.prop(item, "enabled", text="") else: layout.label("[Empty]") @@ -50,7 +50,7 @@ def decal_print(modifier, layout, context): 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="NONE") + layout.prop_search(mgr_ref, "name", scene, "decal_managers", icon="BRUSH_DATA") layout.alert = False def decal_receive(modifier, layout, context): @@ -65,7 +65,7 @@ def decal_receive(modifier, layout, context): 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="NONE") + layout.prop_search(mgr_ref, "name", scene, "decal_managers", icon="BRUSH_DATA") def fademod(modifier, layout, context): layout.prop(modifier, "fader_type") diff --git a/korman/ui/ui_scene.py b/korman/ui/ui_scene.py index dc2d4c0..ec72d82 100644 --- a/korman/ui/ui_scene.py +++ b/korman/ui/ui_scene.py @@ -29,13 +29,13 @@ class SceneButtonsPanel: class DecalManagerListUI(bpy.types.UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_property, index=0, flt_flag=0): - layout.prop(item, "display_name", emboss=False, text="") + layout.prop(item, "display_name", emboss=False, text="", icon="BRUSH_DATA") class WetManagerListUI(bpy.types.UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_property, index=0, flt_flag=0): if item.name: - layout.label(item.name) + layout.label(item.name, icon="BRUSH_DATA") layout.prop(item, "enabled", text="") else: layout.label("[Empty]")