diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-28 13:00:11 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-28 13:00:11 +0400 |
commit | 2c592b0d964c3931b7fd0fa99b2efa4baa8f266c (patch) | |
tree | a4410c10453250b36a9c5b3e8557945ba3b44722 /release/scripts/startup/bl_ui/properties_physics_common.py | |
parent | 61752c926d0f86aefeb2d8e60fb2bf2f1d9d191f (diff) |
Point Cache: allow baking external smoke caches. This needs to be cleaned up
a bit, I couldn't fully understand how the External setting is supposed to
work to make further changes, but this should make it work at least.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_common.py | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py index f623d9a37eb..4db056e77a2 100644 --- a/release/scripts/startup/bl_ui/properties_physics_common.py +++ b/release/scripts/startup/bl_ui/properties_physics_common.py @@ -94,18 +94,25 @@ def point_cache_ui(self, context, cache, enabled, cachetype): if cachetype in {'PSYS', 'HAIR', 'SMOKE'}: row.prop(cache, "use_external") - if cache.use_external: - split = layout.split(percentage=0.80) - split.prop(cache, "name", text="File Name") - split.prop(cache, "index", text="") - - row = layout.row() - row.label(text="File Path:") - row.prop(cache, "use_library_path", "Use Lib Path") + if cachetype == 'SMOKE': + row.prop(cache, "use_library_path", "Use Lib Path") - layout.prop(cache, "filepath", text="") + if cache.use_external: + split = layout.split(percentage=0.35) + col = split.column() + col.label(text="File Name:") + if cache.use_external: + col.label(text="File Path:") - layout.label(text=cache.info) + col = split.column() + sub = col.split(percentage=0.70, align=True) + sub.prop(cache, "name", text="") + sub.prop(cache, "index", text="") + col.prop(cache, "filepath", text="") + + cache_info = cache.info + if cache_info: + layout.label(text=cache_info) else: if cachetype in {'SMOKE', 'DYNAMIC_PAINT'}: if not bpy.data.is_saved: @@ -117,6 +124,7 @@ def point_cache_ui(self, context, cache, enabled, cachetype): else: layout.prop(cache, "name", text="Cache Name") + if not cache.use_external or cachetype == 'SMOKE': row = layout.row(align=True) if cachetype not in {'PSYS', 'DYNAMIC_PAINT'}: |