diff options
author | Thomas Dinges <blender@dingto.org> | 2013-04-28 20:52:51 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-04-28 20:52:51 +0400 |
commit | 674d82d783ed6cd664fec51acb7fcc451a505077 (patch) | |
tree | 2a4f3ec9ebbd499c5136dde451aa27b915b79280 /release | |
parent | 608dc78241c98341c8fb4cab12d73f148adf0471 (diff) |
Fluid UI:
* Display Simulation threads only, when built with OpenMP.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_fluid.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py index 0935f9336e1..1392d21cf15 100644 --- a/release/scripts/startup/bl_ui/properties_physics_fluid.py +++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py @@ -67,7 +67,10 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel): # odd formatting here so translation script can extract string layout.operator("fluid.bake", text=iface_("Bake (Req. Memory: %s)") % fluid.memory_estimate, translate=False, icon='MOD_FLUIDSIM') - layout.prop(fluid, "threads", text="Simulation Threads") + + if bpy.app.build_options.openmp: + layout.prop(fluid, "threads", text="Simulation Threads") + split = layout.split() col = split.column() |