[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27579] branches/render25/release/scripts/ ui/space_userpref.py: [#21649] Display missing scripts in Add-Ons panel

Campbell Barton ideasman42 at gmail.com
Wed Mar 17 22:31:34 CET 2010


Revision: 27579
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27579
Author:   campbellbarton
Date:     2010-03-17 22:31:34 +0100 (Wed, 17 Mar 2010)

Log Message:
-----------
[#21649] Display missing scripts in Add-Ons panel
updated patch from Martin B?\195?\188rbaum (pontiac)

wasnt displaying correctly with filtering

Modified Paths:
--------------
    branches/render25/release/scripts/ui/space_userpref.py

Modified: branches/render25/release/scripts/ui/space_userpref.py
===================================================================
--- branches/render25/release/scripts/ui/space_userpref.py	2010-03-17 21:11:41 UTC (rev 27578)
+++ branches/render25/release/scripts/ui/space_userpref.py	2010-03-17 21:31:34 UTC (rev 27579)
@@ -1493,20 +1493,19 @@
         module_names = {mod.__name__ for mod, info in addons}
         missing_modules = {ext for ext in used_ext if ext not in module_names}
 
-        if missing_modules:
+        if missing_modules and filter in ("All", "Enabled"):
             layout.column().separator()
             layout.column().label(text="Missing script files")
 
             module_names = {mod.__name__ for mod, info in addons}
             for ext in sorted(missing_modules):
-                if filter == "All" or filter == "Enabled":
-                    # Addon UI Code
-                    box = layout.column().box()
-                    column = box.column()
-                    row = column.row()
+                # Addon UI Code
+                box = layout.column().box()
+                column = box.column()
+                row = column.row()
 
-                    row.label(text=ext, icon="ERROR")
-                    row.operator("wm.addon_disable").module = ext
+                row.label(text=ext, icon="ERROR")
+                row.operator("wm.addon_disable").module = ext
 
 from bpy.props import *
 





More information about the Bf-blender-cvs mailing list