[Bf-blender-cvs] [472d5b9] gooseberry: Simple cache manager panel UI in the scene buttons.
Lukas Tönne
noreply at git.blender.org
Mon Mar 23 13:00:42 CET 2015
Commit: 472d5b964aa0af6e6b88e9dcbc0d3c02664db15e
Author: Lukas Tönne
Date: Fri Feb 20 16:27:26 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB472d5b964aa0af6e6b88e9dcbc0d3c02664db15e
Simple cache manager panel UI in the scene buttons.
This is mostly a simple and unintrusive placeholder to have some way of
making caches accessible, but needs some more thought.
===================================================================
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 facf54d..b6bc279 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -402,6 +402,20 @@ class SCENE_PT_simplify(SceneButtonsPanel, Panel):
col.prop(rd, "simplify_ao_sss", text="AO and SSS")
+class SCENE_PT_cache_manager(SceneButtonsPanel, Panel):
+ bl_label = "Cache Manager"
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
+
+ def draw(self, context):
+ layout = self.layout
+
+ layout.operator("cachelibrary.new")
+ for cachelib in context.blend_data.cache_libraries:
+ box = layout.box()
+ box.prop(cachelib, "filepath")
+ box.template_ID(cachelib, "group")
+
+
class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel):
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
_context_path = "scene"
More information about the Bf-blender-cvs
mailing list