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:
authorCampbell Barton <ideasman42@gmail.com>2009-11-14 16:35:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-14 16:35:44 +0300
commitd33291fcc45f17b0bfa6c6021edc47f41f45e76f (patch)
tree9c9e0b3ec8273b8cd35f2b45868b529a88494ff6 /release/scripts/ui/properties_physics_common.py
parentaac16ce4ecacf69e3be5a34f3b4a911428e9217a (diff)
used py error checking tools to fix some bugs & make pep8 corrections
Diffstat (limited to 'release/scripts/ui/properties_physics_common.py')
-rw-r--r--release/scripts/ui/properties_physics_common.py43
1 files changed, 21 insertions, 22 deletions
diff --git a/release/scripts/ui/properties_physics_common.py b/release/scripts/ui/properties_physics_common.py
index 187db9940f9..349399bf724 100644
--- a/release/scripts/ui/properties_physics_common.py
+++ b/release/scripts/ui/properties_physics_common.py
@@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
-import bpy
def point_cache_ui(self, cache, enabled, particles, smoke):
@@ -88,29 +87,29 @@ def point_cache_ui(self, cache, enabled, particles, smoke):
def effector_weights_ui(self, weights):
- layout = self.layout
-
- layout.itemR(weights, "group")
+ layout = self.layout
- split = layout.split()
- split.itemR(weights, "gravity", slider=True)
- split.itemR(weights, "all", slider=True)
+ layout.itemR(weights, "group")
- layout.itemS()
-
- flow = layout.column_flow()
- flow.itemR(weights, "force", slider=True)
- flow.itemR(weights, "vortex", slider=True)
- flow.itemR(weights, "magnetic", slider=True)
- flow.itemR(weights, "wind", slider=True)
- flow.itemR(weights, "curveguide", slider=True)
- flow.itemR(weights, "texture", slider=True)
- flow.itemR(weights, "harmonic", slider=True)
- flow.itemR(weights, "charge", slider=True)
- flow.itemR(weights, "lennardjones", slider=True)
- flow.itemR(weights, "turbulence", slider=True)
- flow.itemR(weights, "drag", slider=True)
- flow.itemR(weights, "boid", slider=True)
+ split = layout.split()
+ split.itemR(weights, "gravity", slider=True)
+ split.itemR(weights, "all", slider=True)
+
+ layout.itemS()
+
+ flow = layout.column_flow()
+ flow.itemR(weights, "force", slider=True)
+ flow.itemR(weights, "vortex", slider=True)
+ flow.itemR(weights, "magnetic", slider=True)
+ flow.itemR(weights, "wind", slider=True)
+ flow.itemR(weights, "curveguide", slider=True)
+ flow.itemR(weights, "texture", slider=True)
+ flow.itemR(weights, "harmonic", slider=True)
+ flow.itemR(weights, "charge", slider=True)
+ flow.itemR(weights, "lennardjones", slider=True)
+ flow.itemR(weights, "turbulence", slider=True)
+ flow.itemR(weights, "drag", slider=True)
+ flow.itemR(weights, "boid", slider=True)
def basic_force_field_settings_ui(self, field):