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:
Diffstat (limited to 'release/scripts/ui/properties_physics_common.py')
-rw-r--r--release/scripts/ui/properties_physics_common.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/release/scripts/ui/properties_physics_common.py b/release/scripts/ui/properties_physics_common.py
index 9fff45d25f9..71bf8ae9590 100644
--- a/release/scripts/ui/properties_physics_common.py
+++ b/release/scripts/ui/properties_physics_common.py
@@ -69,22 +69,26 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
row.prop(cache, "frame_end")
if cachetype not in ('SMOKE', 'CLOTH'):
row.prop(cache, "frame_step")
+ row.prop(cache, "use_quick_cache")
if cachetype != 'SMOKE':
layout.label(text=cache.info)
if cachetype != 'SMOKE':
split = layout.split()
+ split.enabled = enabled and (not bpy.data.is_dirty)
col = split.column()
- col.enabled = enabled
- col.prop(cache, "use_quick_cache")
+ col.prop(cache, "use_disk_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")
+ col.active = cache.use_disk_cache
+ col.prop(cache, "use_library_path", "Use Lib Path")
+
+ row = layout.row()
+ row.enabled = enabled and (not bpy.data.is_dirty)
+ row.active = cache.use_disk_cache
+ row.label(text="Compression:")
+ row.prop(cache, "compression", expand=True)
layout.separator()