[Bf-blender-cvs] [c345910] alembic_pointcache: Display UI for cache library inside the point cache UI.

Lukas Tönne noreply at git.blender.org
Thu Feb 19 17:05:25 CET 2015


Commit: c3459108a3cf95fba3fb6a2d4936b4a6a6a5b9f5
Author: Lukas Tönne
Date:   Thu Feb 19 14:07:55 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rBc3459108a3cf95fba3fb6a2d4936b4a6a6a5b9f5

Display UI for cache library inside the point cache UI.

===================================================================

M	release/scripts/startup/bl_ui/properties_physics_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py
index 8816032..06ddef0 100644
--- a/release/scripts/startup/bl_ui/properties_physics_common.py
+++ b/release/scripts/startup/bl_ui/properties_physics_common.py
@@ -97,8 +97,14 @@ class PHYSICS_PT_add(PhysicButtonsPanel, Panel):
                             'CONSTRAINT')  # RB_TODO needs better icon
 
 
-# cache-type can be 'PSYS' 'HAIR' 'SMOKE' etc
+def cache_library_ui(context, layout, cachelib):
+    if not cachelib:
+        return
+
+    layout.prop(cachelib, "filepath")
 
+
+# cache-type can be 'PSYS' 'HAIR' 'SMOKE' etc
 def point_cache_ui(self, context, cache_user, cache, enabled, cachetype):
     ### special cases (don't ask, it's mysterious) ###
     # cache types that support external cache data
@@ -119,6 +125,7 @@ def point_cache_ui(self, context, cache_user, cache, enabled, cachetype):
     layout.context_pointer_set("point_cache_user", cache_user)
 
     layout.template_ID(cache, "cache_library", new="cachelibrary.new")
+    cache_library_ui(context, layout, cache.cache_library)
 
     row = layout.row()
     if supports_external:




More information about the Bf-blender-cvs mailing list