diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-02-26 16:18:48 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-03-26 16:12:37 +0300 |
commit | 1168ec39c7261b5bd57661ffb8bfdcc62f0e5f03 (patch) | |
tree | 5ee34c6e5b5ff28d9ec14016051cf4cb0397dddc /release | |
parent | 61d6e5044499b70148602a69fc646fe397b1f11f (diff) |
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 ...
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_scene.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index bc6e16cc0c0..cf9b13d3ac8 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) |