[Bf-blender-cvs] [609ce89] gooseberry: Added poll function for the cache manager panel to prevent hiding in Cycles render engine.

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


Commit: 609ce896883319429214a7075dcf76f56c44d759
Author: Lukas Tönne
Date:   Thu Feb 26 14:18:48 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB609ce896883319429214a7075dcf76f56c44d759

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