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-01 02:35:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-01 02:35:56 +0300
commitd96480884666247beba7085cf709c615a80ddc67 (patch)
tree13984eea7d8325a7dadd2b27606adc8b10cf938b /release/scripts/ui/properties_physics_common.py
parent41c0236aaa1f4b07650f55905ad1cfa886336268 (diff)
made scripts pass the pep8 test (though not fully pep8 yet)
added comment in header to know if a script has been converted or not.
Diffstat (limited to 'release/scripts/ui/properties_physics_common.py')
-rw-r--r--release/scripts/ui/properties_physics_common.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/ui/properties_physics_common.py b/release/scripts/ui/properties_physics_common.py
index 4839f061963..3d2643c75cc 100644
--- a/release/scripts/ui/properties_physics_common.py
+++ b/release/scripts/ui/properties_physics_common.py
@@ -3,14 +3,16 @@
# http://www.gnu.org/copyleft/gpl.html. Installing, importing or otherwise
# using this module constitutes acceptance of the terms of this License.
+# <pep8 compliant>
import bpy
+
def point_cache_ui(self, cache, enabled, particles, smoke):
layout = self.layout
layout.set_context_pointer("PointCache", cache)
row = layout.row()
- row.template_list(cache, "point_cache_list", cache, "active_point_cache_index", rows=2 )
+ row.template_list(cache, "point_cache_list", cache, "active_point_cache_index", rows=2)
col = row.column(align=True)
col.itemO("ptcache.add_new", icon='ICON_ZOOMIN', text="")
col.itemO("ptcache.remove", icon='ICON_ZOOMOUT', text="")
@@ -53,7 +55,7 @@ def point_cache_ui(self, cache, enabled, particles, smoke):
row.enabled = enabled
row.itemO("ptcache.bake_from_cache", text="Current Cache to Bake")
if not smoke:
- row.itemR(cache, "step");
+ row.itemR(cache, "step")
if not smoke:
row = layout.row()
@@ -71,6 +73,7 @@ def point_cache_ui(self, cache, enabled, particles, smoke):
row.itemO("ptcache.free_bake_all", text="Free All Bakes")
layout.itemO("ptcache.bake_all", "bake", False, text="Update All Dynamics to current frame")
+
def effector_weights_ui(self, weights):
layout = self.layout
@@ -96,6 +99,7 @@ def effector_weights_ui(self, weights):
flow.itemR(weights, "drag", slider=True)
flow.itemR(weights, "boid", slider=True)
+
def basic_force_field_settings_ui(self, field):
layout = self.layout
split = layout.split()