Add ctrl-click rename to most lists in Blender UI and templates/examples.
[blender.git] / release / scripts / startup / bl_ui / properties_mask_common.py
index 203e5078ee4aae58142e5d8b9785deee09c62f49..b6f3cf9353121230e85e165a44bc3fc4066bff82 100644 (file)
@@ -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)