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>2010-05-16 14:21:00 +0400
committerThomas Dinges <blender@dingto.org>2010-05-16 14:21:00 +0400
commite1bf9d30bcbda27c997c451bd261dc01f70de137 (patch)
tree5bf526d2a9bdd5a98652e02ccf91354a5d065b61 /release/scripts/ui/properties_physics_common.py
parentc2ffcb84975b3854daea54cd987895a0d6695b9b (diff)
Properties Window:
*The narrowui value was hard coded in all ui scripts, made an user preferences option. Basically this value determines on which area width, it should switch between dual/single column layout. ToDo: The Changes only take effect when reloading scripts/restarting Blender (after saving as default). Will maybe add the "Reload Scripts" operator next to the button in the future. * Small fix for Fluid Add Button, when in single column mode. Didn't expand like the other "Add" Buttons.
Diffstat (limited to 'release/scripts/ui/properties_physics_common.py')
-rw-r--r--release/scripts/ui/properties_physics_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/ui/properties_physics_common.py b/release/scripts/ui/properties_physics_common.py
index eac2bc60f35..097f7586e58 100644
--- a/release/scripts/ui/properties_physics_common.py
+++ b/release/scripts/ui/properties_physics_common.py
@@ -18,10 +18,10 @@
# <pep8 compliant>
-narrowui = 180
-
import bpy
+narrowui = bpy.context.user_preferences.view.properties_width_check
+
#cachetype can be 'PSYS' 'HAIR' 'SMOKE' etc
def point_cache_ui(self, context, cache, enabled, cachetype):
layout = self.layout