[Bf-blender-cvs] [fb5d2222176] hair_guides: Display the scalp vertex group as the main identifier of bundles in the list.
Lukas Tönne
noreply at git.blender.org
Thu Jan 4 10:42:56 CET 2018
Commit: fb5d222217602b3bc2da6056124e73760fb5afb4
Author: Lukas Tönne
Date: Thu Jan 4 09:14:29 2018 +0000
Branches: hair_guides
https://developer.blender.org/rBfb5d222217602b3bc2da6056124e73760fb5afb4
Display the scalp vertex group as the main identifier of bundles in the list.
===================================================================
M release/scripts/startup/bl_ui/properties_data_groom.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_groom.py b/release/scripts/startup/bl_ui/properties_data_groom.py
index 5adee6b054c..f13bee081a1 100644
--- a/release/scripts/startup/bl_ui/properties_data_groom.py
+++ b/release/scripts/startup/bl_ui/properties_data_groom.py
@@ -24,12 +24,15 @@ from rna_prop_ui import PropertyPanel
class GROOM_UL_bundles(bpy.types.UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index, flt_flag):
- ob = data
+ groom = data
bundle = item
if self.layout_type in {'DEFAULT', 'COMPACT'}:
- #layout.prop(groom, "name", text="", emboss=False, icon_value=icon)
- layout.label(text="", icon_value=icon)
+ row = layout.row(align=True)
+ if groom.scalp_object:
+ row.prop_search(bundle, "scalp_vertex_group", groom.scalp_object, "vertex_groups", text="")
+ else:
+ row.prop(bundle, "scalp_vertex_group", text="")
elif self.layout_type == 'GRID':
layout.alignment = 'CENTER'
More information about the Bf-blender-cvs
mailing list