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

Lukas Tönne noreply at git.blender.org
Wed Mar 4 13:34:55 CET 2015


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

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