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:
authorSebastián Barschkis <sebbas@sebbas.org>2020-07-02 17:30:05 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-07-02 17:31:35 +0300
commitfb0f0f4d79a7cc89f31787615d25a98ca263bef5 (patch)
tree1d3582159b122a95363c259754af7fc92b9005f0 /release
parentf58f09c9a910614ef4d3b0ccf7cd7ee777053118 (diff)
Fluid: Added offset to control frame range
Added an offset field to control when to load the simulation files. Since this is a very small but helpful addition it is in my view safe to commit at this point of the bcon cycle.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_fluid.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py
index 0bfa70b008b..13073d182d1 100644
--- a/release/scripts/startup/bl_ui/properties_physics_fluid.py
+++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py
@@ -1135,22 +1135,22 @@ class PHYSICS_PT_cache(PhysicButtonsPanel, Panel):
flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
col = flow.column()
- col.prop(domain, "cache_type", expand=False)
- col.enabled = not is_baking_any
-
- col.separator()
-
row = col.row()
- col = row.column(align=True)
- col.prop(domain, "cache_frame_start", text="Frame Start")
- col.prop(domain, "cache_frame_end", text="End")
- row.enabled = not is_baking_any
+ row = row.column(align=True)
+ row.prop(domain, "cache_frame_start", text="Frame Start")
+ row.prop(domain, "cache_frame_end", text="End")
+ row = col.row()
+ row.enabled = domain.cache_type in {'MODULAR', 'ALL'}
+ row.prop(domain, "cache_frame_offset", text="Offset")
col.separator()
col = flow.column()
- col.enabled = not is_baking_any and not has_baked_data
- col.prop(domain, "cache_resumable", text="Is Resumable")
+ col.prop(domain, "cache_type", expand=False)
+
+ row = col.row()
+ row.enabled = not is_baking_any and not has_baked_data
+ row.prop(domain, "cache_resumable", text="Is Resumable")
row = col.row()
row.enabled = not is_baking_any and not has_baked_data