Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeta-tester <alpha-beta-release@gmx.net>2013-11-25 21:25:26 +0400
committerbeta-tester <alpha-beta-release@gmx.net>2013-11-25 21:25:26 +0400
commit71ce07d57ba7ec41696fd8afe8c22e4f449be350 (patch)
treeed13df6c5cb0a72d5898c7ef265713ef557d1027 /io_scene_ms3d
parentdbf7e49d9b37fa61b5c42d33864f6b4fbfa6d705 (diff)
according "uiList: ctrl-clic-edit name", i changed my add-ons template_list
Diffstat (limited to 'io_scene_ms3d')
-rw-r--r--io_scene_ms3d/__init__.py4
-rw-r--r--io_scene_ms3d/ms3d_ui.py13
2 files changed, 11 insertions, 6 deletions
diff --git a/io_scene_ms3d/__init__.py b/io_scene_ms3d/__init__.py
index 7173a1aa..fbb31626 100644
--- a/io_scene_ms3d/__init__.py
+++ b/io_scene_ms3d/__init__.py
@@ -23,8 +23,8 @@ bl_info = {
'description': "Import / Export MilkShape3D MS3D files"\
" (conform with MilkShape3D v1.8.4)",
'author': "Alexander Nussbaumer",
- 'version': (0, 99, 3),
- 'blender': (2, 66, 0),
+ 'version': (1, 0, 0),
+ 'blender': (2, 69, 2),
'location': "File > Import & File > Export",
'warning': "",
'wiki_url': "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
diff --git a/io_scene_ms3d/ms3d_ui.py b/io_scene_ms3d/ms3d_ui.py
index 6547bba2..f4fb62eb 100644
--- a/io_scene_ms3d/ms3d_ui.py
+++ b/io_scene_ms3d/ms3d_ui.py
@@ -1291,10 +1291,18 @@ class Ms3dMaterialProperties(PropertyGroup):
###############################################################################
# http://www.blender.org/documentation/blender_python_api_2_65_10/bpy.types.UIList.html
+#
+# uiList: ctrl-clic-edit name
+# http://lists.blender.org/pipermail/bf-committers/2013-November/042113.html
+# http://git.blender.org/gitweb/gitweb.cgi/blender.git/commit/f842ce82e6c92b156c0036cbefb4e4d97cd1d498
+# http://git.blender.org/gitweb/gitweb.cgi/blender.git/commit/4c52e737df39e538d3b41a232035a4a1e240505d
class Ms3dGroupUILise(UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
if self.layout_type in {'DEFAULT', 'COMPACT', }:
- layout.label(text=item.name, icon_value=icon)
+ if item:
+ layout.prop(item, "name", text="", emboss=False, icon_value=icon)
+ else:
+ layout.label(text="", icon_value=icon)
elif self.layout_type in {'GRID', }:
layout.alignment = 'CENTER'
layout.label(text="", icon_value=icon)
@@ -1478,9 +1486,6 @@ class Ms3dGroupPanel(Panel):
collection = custom_data.groups
if (index >= 0 and index < len(collection)):
row = layout.row()
- row.prop(collection[index], 'name')
-
- row = layout.row()
subrow = row.row(align=True)
subrow.operator(
Ms3dUi.OPT_GROUP_APPLY,