Add ctrl-click rename to most lists in Blender UI and templates/examples.
Notes: * Did not touch to addons, that's up to the authors. ;) * Did not removed any "name" field below lists. We might want to do this in some cases (less UI clutter), but probably not always, so will let maintainers of the related areas decide here.
This commit is contained in:
@@ -31,7 +31,7 @@ class MASK_UL_layers(UIList):
|
||||
# assert(isinstance(item, bpy.types.MaskLayer)
|
||||
mask = item
|
||||
if self.layout_type in {'DEFAULT', 'COMPACT'}:
|
||||
layout.label(text=mask.name, translate=False, icon_value=icon)
|
||||
layout.prop(mask, "name", text="", emboss=False, icon_value=icon)
|
||||
row = layout.row(align=True)
|
||||
row.prop(mask, "hide", text="", emboss=False)
|
||||
row.prop(mask, "hide_select", text="", emboss=False)
|
||||
|
||||
Reference in New Issue
Block a user