[Bf-blender-cvs] [d450f7c3380] temp-lanpr-cleanup: LANPR: Icon fixes on line type target layer selector.
YimingWu
noreply at git.blender.org
Sat Sep 14 10:20:15 CEST 2019
Commit: d450f7c3380c4093a3358abfb5f66954cfcbd750
Author: YimingWu
Date: Thu Sep 12 22:31:15 2019 +0800
Branches: temp-lanpr-cleanup
https://developer.blender.org/rBd450f7c3380c4093a3358abfb5f66954cfcbd750
LANPR: Icon fixes on line type target layer selector.
===================================================================
M release/scripts/startup/bl_ui/properties_collection.py
M release/scripts/startup/bl_ui/properties_lanpr.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py
index a20d416767c..e874ea9b229 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -36,8 +36,8 @@ class CollectionButtonsPanel:
def lanpr_make_line_type_entry(col, line_type, text_disp, expand, search_from):
col.prop(line_type, "use", text=text_disp)
if line_type.use and expand:
- col.prop_search(line_type, "layer", search_from, "layers")
- col.prop_search(line_type, "material", search_from, "materials")
+ col.prop_search(line_type, "layer", search_from, "layers", icon='GREASEPENCIL')
+ col.prop_search(line_type, "material", search_from, "materials", icon='SHADING_TEXTURE')
class COLLECTION_PT_collection_flags(CollectionButtonsPanel, Panel):
bl_label = "Collection Flags"
diff --git a/release/scripts/startup/bl_ui/properties_lanpr.py b/release/scripts/startup/bl_ui/properties_lanpr.py
index d80b42cb975..564a44cc1f9 100644
--- a/release/scripts/startup/bl_ui/properties_lanpr.py
+++ b/release/scripts/startup/bl_ui/properties_lanpr.py
@@ -35,8 +35,8 @@ class LanprButtonsPanel:
def lanpr_make_line_type_entry(col, line_type, text_disp, expand, search_from):
col.prop(line_type, "use", text=text_disp)
if line_type.use and expand:
- col.prop_search(line_type, "layer", search_from, "layers")
- col.prop_search(line_type, "material", search_from, "materials")
+ col.prop_search(line_type, "layer", search_from, "layers", icon='GREASEPENCIL')
+ col.prop_search(line_type, "material", search_from, "materials", icon='SHADING_TEXTURE')
class OBJECT_PT_lanpr_settings(LanprButtonsPanel, Panel):
bl_label = "LANPR settings"
More information about the Bf-blender-cvs
mailing list