diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-23 23:37:23 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-23 23:54:32 +0400 |
commit | 4c52e737df39e538d3b41a232035a4a1e240505d (patch) | |
tree | 3381fcad45e1749524289cc10f597af5419fafc8 /release/scripts/startup/bl_ui/properties_texture.py | |
parent | 500934690791acca431782c1e59f8f4671c0e03e (diff) |
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.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_texture.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_texture.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py index 023b3a13848..c03ea1c5422 100644 --- a/release/scripts/startup/bl_ui/properties_texture.py +++ b/release/scripts/startup/bl_ui/properties_texture.py @@ -63,7 +63,10 @@ class TEXTURE_UL_texslots(UIList): slot = item tex = slot.texture if slot else None if self.layout_type in {'DEFAULT', 'COMPACT'}: - layout.label(text=tex.name if tex else "", translate=False, icon_value=icon) + if tex: + layout.prop(tex, "name", text="", emboss=False, icon_value=icon) + else: + layout.label(text="", icon_value=icon) if tex and isinstance(item, bpy.types.MaterialTextureSlot): layout.prop(ma, "use_textures", text="", index=index) elif self.layout_type in {'GRID'}: |