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:
Diffstat (limited to 'release/scripts/ui/properties_physics_common.py')
-rw-r--r--release/scripts/ui/properties_physics_common.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/release/scripts/ui/properties_physics_common.py b/release/scripts/ui/properties_physics_common.py
index eac2bc60f35..350b17e6e9f 100644
--- a/release/scripts/ui/properties_physics_common.py
+++ b/release/scripts/ui/properties_physics_common.py
@@ -18,16 +18,18 @@
# <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
wide_ui = context.region.width > narrowui
- layout.set_context_pointer("PointCache", cache)
+ layout.set_context_pointer("point_cache", cache)
row = layout.row()
row.template_list(cache, "point_cache_list", cache, "active_point_cache_index", rows=2)
@@ -68,7 +70,7 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
sub = col.column()
sub.enabled = enabled
sub.prop(cache, "quick_cache")
-
+
sub = col.column()
sub.enabled = bpy.data.file_is_saved
sub.prop(cache, "disk_cache")
@@ -103,6 +105,7 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
col.operator("ptcache.free_bake_all", text="Free All Bakes")
col.operator("ptcache.bake_all", text="Update All To Frame").bake = False
+
def effector_weights_ui(self, context, weights):
layout = self.layout