diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2013-04-10 22:35:18 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2013-04-10 22:35:18 +0400 |
commit | cbe9ae244e5af8b89e28a6fe03405bcb368ba83b (patch) | |
tree | 383220a82cfeea4845f96f298e34b98939014bf2 /source/blender/makesrna/intern/rna_fluidsim.c | |
parent | ac224a64f408fcc8f90f7ea0124cbe4b9ef1e811 (diff) |
Add a gui control for setting omp threads in fluids
Diffstat (limited to 'source/blender/makesrna/intern/rna_fluidsim.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_fluidsim.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_fluidsim.c b/source/blender/makesrna/intern/rna_fluidsim.c index 9ff83daa2f8..d6ca900397a 100644 --- a/source/blender/makesrna/intern/rna_fluidsim.c +++ b/source/blender/makesrna/intern/rna_fluidsim.c @@ -280,6 +280,11 @@ static void rna_def_fluidsim_domain(BlenderRNA *brna) /* standard settings */ + prop = RNA_def_property(srna, "threads", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "threads"); + RNA_def_property_range(prop, 1, 32); + RNA_def_property_ui_text(prop, "Simulation Threads", "Threads used to calculate the simulation"); + prop = RNA_def_property(srna, "resolution", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "resolutionxyz"); RNA_def_property_range(prop, 1, 1024); |