[Bf-blender-cvs] [a7f5d1d] alembic_pointcache: Simple cache manager panel UI in the scene buttons.
Lukas Tönne
noreply at git.blender.org
Mon Feb 23 14:06:38 CET 2015
Commit: a7f5d1d6622b1e8121719c0a5e5b64946b7158bc
Author: Lukas Tönne
Date: Fri Feb 20 16:27:26 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rBa7f5d1d6622b1e8121719c0a5e5b64946b7158bc
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