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:
authorThomas Dinges <blender@dingto.org>2013-04-28 20:52:51 +0400
committerThomas Dinges <blender@dingto.org>2013-04-28 20:52:51 +0400
commit674d82d783ed6cd664fec51acb7fcc451a505077 (patch)
tree2a4f3ec9ebbd499c5136dde451aa27b915b79280 /release
parent608dc78241c98341c8fb4cab12d73f148adf0471 (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.py5
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()