[Bf-blender-cvs] [8a2e1b5] alembic_pointcache: Added poll function for the cache manager panel to prevent hiding in Cycles render engine.

Lukas Tönne noreply at git.blender.org
Thu Feb 26 14:19:49 CET 2015


Commit: 8a2e1b5c1674323a15febd7aa56caf6861f82060
Author: Lukas Tönne
Date:   Thu Feb 26 14:18:48 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB8a2e1b5c1674323a15febd7aa56caf6861f82060

Added poll function for the cache manager panel to prevent hiding in
Cycles render engine.

The "compat_engines" thingy really gets in the way here ...

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

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 bc6e16c..cf9b13d 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -408,6 +408,10 @@ class SCENE_PT_cache_manager(SceneButtonsPanel, Panel):
 
     item_type_icon = { e.identifier : e.icon for e in bpy.types.CacheItem.bl_rna.properties['type'].enum_items }
 
+    @classmethod
+    def poll(cls, context):
+        return True
+
     # returns True if the item exists and is enabled
     def draw_cache_item_button(self, context, layout, cachelib, ob, type, index=-1):
         item = cachelib.cache_item_find(ob, type, index)




More information about the Bf-blender-cvs mailing list