Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2015-03-29 19:23:11 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-29 19:23:11 +0300
commitcf7b4e30545c733b44f479de29c9c32a0576bc89 (patch)
tree476c7b80b0106c13969e11ce42e8c21d01b70427 /release
parente9df0e53d1dbc60c071e9de9b5ab99c705db7bb2 (diff)
Baking API for cache modifiers.
Cache baking means the cache modifier should read input caches over the given frame range and produce the correct output for writing into the output cache file. Cache modifiers can optionally implement a 'bake' function. This is used through a bake operator from the cache modifier panel. Baking is executed in a job, which will help with cancelling bakes and displaying status info.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index b0a33b517a6..70fa8f2bb8d 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -327,13 +327,16 @@ class OBJECT_PT_duplication(ObjectButtonsPanel, Panel):
bl_label = "Duplication"
def draw_cache_modifier(self, context, layout, cachelib, md):
+ layout.context_pointer_set("cache_modifier", md)
+
row = layout.row(align=True)
row.context_pointer_set("cache_modifier", md)
row.prop(md, "name", text="")
row.operator("cachelibrary.remove_modifier", icon='X', text="", emboss=False)
- row = layout.row()
- row.prop(md, "filepath")
+ col = layout.column(align=True)
+ col.prop(md, "filepath")
+ col.operator("cachelibrary.modifier_bake", text="Bake")
# match enum type to our functions, avoids a lookup table.
getattr(self, md.type)(layout, cachelib, md)