[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40132] trunk/blender: pep8 edits
Campbell Barton
ideasman42 at gmail.com
Sun Sep 11 17:36:11 CEST 2011
Revision: 40132
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40132
Author: campbellbarton
Date: 2011-09-11 15:36:11 +0000 (Sun, 11 Sep 2011)
Log Message:
-----------
pep8 edits
Modified Paths:
--------------
trunk/blender/intern/tools/credits_svn_gen.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
trunk/blender/release/scripts/startup/bl_ui/properties_game.py
Modified: trunk/blender/intern/tools/credits_svn_gen.py
===================================================================
--- trunk/blender/intern/tools/credits_svn_gen.py 2011-09-11 15:33:33 UTC (rev 40131)
+++ trunk/blender/intern/tools/credits_svn_gen.py 2011-09-11 15:36:11 UTC (rev 40132)
@@ -88,7 +88,6 @@
def parse_commits(filepath):
- import xml.dom.minidom
from xml.dom.minidom import parse
svn_xml = parse(filepath)
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py 2011-09-11 15:33:33 UTC (rev 40131)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py 2011-09-11 15:36:11 UTC (rev 40132)
@@ -759,11 +759,11 @@
split.template_ID(md, "mask_texture", new="texture.new")
if md.mask_texture:
split = layout.split()
-
+
col = split.column()
col.label(text="Texture Coordinates:")
col.prop(md, "mask_tex_mapping", text="")
-
+
col = split.column()
col.label(text="Use Channel:")
col.prop(md, "mask_tex_use_channel", text="")
@@ -806,7 +806,7 @@
def VERTEX_WEIGHT_MIX(self, layout, ob, md):
split = layout.split()
-
+
col = split.column()
col.label(text="Vertex Group A:")
col.prop_search(md, "vertex_group_a", ob, "vertex_groups", text="")
@@ -831,7 +831,7 @@
def VERTEX_WEIGHT_PROXIMITY(self, layout, ob, md):
split = layout.split()
-
+
col = split.column()
col.label(text="Vertex Group:")
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_game.py 2011-09-11 15:33:33 UTC (rev 40131)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_game.py 2011-09-11 15:36:11 UTC (rev 40132)
@@ -195,10 +195,11 @@
row.prop(game, "collision_margin", text="Margin", slider=True)
row.prop(game, "use_collision_compound", text="Compound")
+
class PHYSICS_PT_game_obstacles(PhysicsButtonsPanel, Panel):
bl_label = "Create Obstacle"
COMPAT_ENGINES = {'BLENDER_GAME'}
-
+
@classmethod
def poll(cls, context):
game = context.object.game
@@ -221,6 +222,7 @@
row.prop(game, "obstacle_radius", text="Radius")
row.label()
+
class RenderButtonsPanel():
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
@@ -387,17 +389,19 @@
flow.prop(gs, "show_physics_visualization", text="Physics Visualization")
flow.prop(gs, "use_deprecation_warnings")
flow.prop(gs, "show_mouse", text="Mouse Cursor")
-
+
+
class SceneButtonsPanel():
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "scene"
-
+
+
class SCENE_PT_game_navmesh(SceneButtonsPanel, bpy.types.Panel):
bl_label = "Navigation mesh"
bl_default_closed = True
COMPAT_ENGINES = {'BLENDER_GAME'}
-
+
@classmethod
def poll(cls, context):
scene = context.scene
@@ -437,13 +441,13 @@
col = layout.column()
col.label(text="Polygonization:")
split = col.split()
-
+
col = split.column()
col.prop(rd, "edge_max_len")
col.prop(rd, "edge_max_error")
split.prop(rd, "verts_per_poly")
-
+
col = layout.column()
col.label(text="Detail Mesh:")
row = col.row()
@@ -574,10 +578,11 @@
col.label(text="Logic Steps:")
col.prop(gs, "logic_step_max", text="Max")
+
class WORLD_PT_game_physics_obstacles(WorldButtonsPanel, Panel):
bl_label = "Obstacle simulation"
COMPAT_ENGINES = {'BLENDER_GAME'}
-
+
@classmethod
def poll(cls, context):
scene = context.scene
@@ -588,7 +593,7 @@
gs = context.scene.game_settings
- layout.prop(gs, "obstacle_simulation", text = "Type")
+ layout.prop(gs, "obstacle_simulation", text="Type")
if gs.obstacle_simulation != 'NONE':
layout.prop(gs, "level_height")
layout.prop(gs, "show_obstacle_simulation")
More information about the Bf-blender-cvs
mailing list