[Bf-extensions-cvs] [71ce07d] master: according "uiList: ctrl-clic-edit name", i changed my add-ons template_list

beta-tester noreply at git.blender.org
Mon Nov 25 18:25:31 CET 2013


Commit: 71ce07d57ba7ec41696fd8afe8c22e4f449be350
Author: beta-tester
Date:   Mon Nov 25 18:25:26 2013 +0100
http://developer.blender.org/rBA71ce07d57ba7ec41696fd8afe8c22e4f449be350

according "uiList: ctrl-clic-edit name", i changed my add-ons template_list

===================================================================

M	io_scene_ms3d/__init__.py
M	io_scene_ms3d/ms3d_ui.py

===================================================================

diff --git a/io_scene_ms3d/__init__.py b/io_scene_ms3d/__init__.py
index 7173a1a..fbb3162 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 6547bba..f4fb62e 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,



More information about the Bf-extensions-cvs mailing list