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:
authorJanne Karhu <jhkarh@gmail.com>2010-12-18 18:03:31 +0300
committerJanne Karhu <jhkarh@gmail.com>2010-12-18 18:03:31 +0300
commitb58dbbd51b298acede888a4005d13982417a6bee (patch)
tree8c0ef0e7d3e2cb24100dc8d86686471cf633951e /release
parenta93411629811ec20f576895c0cb515b9abd7ec19 (diff)
Extreme makeover of pointcache code:
* Pointcache code was quite ugly looking and complicated, so here are mostly just cosmetic adjustments, but some improved logic also. * Slight cleanup of pointcache ui too. * Shouldn't have any functional changes what so ever, so poke me right away if something seems off.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/properties_physics_common.py35
1 files changed, 19 insertions, 16 deletions
diff --git a/release/scripts/ui/properties_physics_common.py b/release/scripts/ui/properties_physics_common.py
index ba1cc9ef626..9fff45d25f9 100644
--- a/release/scripts/ui/properties_physics_common.py
+++ b/release/scripts/ui/properties_physics_common.py
@@ -56,31 +56,34 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
layout.label(text="Cache is disabled until the file is saved")
layout.enabled = False
- layout.prop(cache, "name", text="File Name")
+ if cache.use_disk_cache:
+ layout.prop(cache, "name", text="File Name")
+ else:
+ layout.prop(cache, "name", text="Cache Name")
- split = layout.split()
- col = split.column(align=True)
+ row = layout.row(align=True)
if cachetype != 'PSYS':
- col.enabled = enabled
- col.prop(cache, "frame_start")
- col.prop(cache, "frame_end")
+ row.enabled = enabled
+ row.prop(cache, "frame_start")
+ row.prop(cache, "frame_end")
if cachetype not in ('SMOKE', 'CLOTH'):
- col.prop(cache, "frame_step")
-
- col = split.column()
+ row.prop(cache, "frame_step")
+ if cachetype != 'SMOKE':
+ layout.label(text=cache.info)
if cachetype != 'SMOKE':
- sub = col.column()
- sub.enabled = enabled
- sub.prop(cache, "use_quick_cache")
+ split = layout.split()
- sub = col.column()
- sub.enabled = (not bpy.data.is_dirty)
- sub.prop(cache, "use_disk_cache")
- col.label(text=cache.info)
+ col = split.column()
+ col.enabled = enabled
+ col.prop(cache, "use_quick_cache")
+ col = split.column()
+ col.enabled = (not bpy.data.is_dirty)
+ col.prop(cache, "use_disk_cache")
sub = col.column()
+ sub.enabled = cache.use_disk_cache
sub.prop(cache, "use_library_path", "Use Lib Path")
layout.separator()