[Bf-blender-cvs] [f7d04e0] gooseberry: Minor fix for UI code showing cache items.

Lukas Tönne noreply at git.blender.org
Mon Mar 23 13:02:30 CET 2015


Commit: f7d04e0d6a9f5e57f86cfa2e240db14fa1a48f68
Author: Lukas Tönne
Date:   Wed Mar 4 13:34:29 2015 +0100
Branches: gooseberry
https://developer.blender.org/rBf7d04e0d6a9f5e57f86cfa2e240db14fa1a48f68

Minor fix for UI code showing cache items.

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

M	release/scripts/startup/bl_ui/properties_scene.py

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

diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index 1c40742..0356981 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -445,16 +445,15 @@ def cachelib_object_items(cachelib, ob, filter_types = []):
 
     for item_type, item_index in items_desc():
         item = cachelib.cache_item_find(ob, item_type, item_index)
+        
         show = False
         enable = False
-
         # always show existing items
         if item:
             show = True
             enable = True
-
         # always show selected types
-        if item_type in filter_types:
+        elif item_type in filter_types:
             show = True
             enable = True
         # special case: OBJECT type used as top level, show but disable




More information about the Bf-blender-cvs mailing list