[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24397] trunk/blender: pep8 whitespace commit
Campbell Barton
ideasman42 at gmail.com
Sat Nov 7 23:07:46 CET 2009
Revision: 24397
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24397
Author: campbellbarton
Date: 2009-11-07 23:07:46 +0100 (Sat, 07 Nov 2009)
Log Message:
-----------
pep8 whitespace commit
bpy/rna api (no functionality change, just move getting the srna py base into a function)
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bpy_ext/Mesh.py
trunk/blender/release/scripts/modules/bpy_ext/Object.py
trunk/blender/release/scripts/modules/bpy_ext/__init__.py
trunk/blender/release/scripts/modules/bpy_ops.py
trunk/blender/release/scripts/modules/bpy_utils.py
trunk/blender/release/scripts/modules/dynamic_menu.py
trunk/blender/release/scripts/templates/gamelogic.py
trunk/blender/release/scripts/templates/gamelogic_basic.py
trunk/blender/release/scripts/templates/gamelogic_module.py
trunk/blender/release/scripts/templates/operator.py
trunk/blender/release/scripts/templates/operator_simple.py
trunk/blender/release/scripts/ui/properties_data_mesh.py
trunk/blender/release/scripts/ui/properties_object_constraint.py
trunk/blender/release/scripts/ui/space_console.py
trunk/blender/release/scripts/ui/space_info.py
trunk/blender/release/scripts/ui/space_view3d.py
trunk/blender/release/scripts/ui/space_view3d_toolbar.py
trunk/blender/source/blender/python/intern/bpy_rna.c
Modified: trunk/blender/release/scripts/modules/bpy_ext/Mesh.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_ext/Mesh.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/modules/bpy_ext/Mesh.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -19,7 +19,7 @@
def ord_ind(i1,i2):
if i1<i2: return i1,i2
return i2,i1
-
+
def edge_key(ed):
v1, v2 = tuple(ed.verts)
return ord_ind(v1, v2)
@@ -28,18 +28,18 @@
verts = tuple(face.verts)
if len(verts)==3:
return ord_ind(verts[0], verts[1]), ord_ind(verts[1], verts[2]), ord_ind(verts[2], verts[0])
-
+
return ord_ind(verts[0], verts[1]), ord_ind(verts[1], verts[2]), ord_ind(verts[2], verts[3]), ord_ind(verts[3], verts[0])
def mesh_edge_keys(mesh):
return [edge_key for face in mesh.faces for edge_key in face.edge_keys()]
def mesh_edge_face_count_dict(mesh, face_edge_keys=None):
-
+
# Optional speedup
if face_edge_keys==None:
face_edge_keys = [face.edge_keys() for face in face_list]
-
+
face_edge_count = {}
for face_keys in face_edge_keys:
for key in face_keys:
@@ -47,8 +47,8 @@
face_edge_count[key] += 1
except:
face_edge_count[key] = 1
-
-
+
+
return face_edge_count
def mesh_edge_face_count(mesh, face_edge_keys=None):
Modified: trunk/blender/release/scripts/modules/bpy_ext/Object.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_ext/Object.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/modules/bpy_ext/Object.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modified: trunk/blender/release/scripts/modules/bpy_ext/__init__.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_ext/__init__.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/modules/bpy_ext/__init__.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modified: trunk/blender/release/scripts/modules/bpy_ops.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_ops.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/modules/bpy_ops.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -127,11 +127,11 @@
'''
__keys__ = ('module', 'func')
-
-
+
+
def _get_doc(self):
return op_as_string(self.idname())
-
+
__doc__ = property(_get_doc)
def __init__(self, module, func):
Modified: trunk/blender/release/scripts/modules/bpy_utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_utils.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/modules/bpy_utils.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modified: trunk/blender/release/scripts/modules/dynamic_menu.py
===================================================================
--- trunk/blender/release/scripts/modules/dynamic_menu.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/modules/dynamic_menu.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modified: trunk/blender/release/scripts/templates/gamelogic.py
===================================================================
--- trunk/blender/release/scripts/templates/gamelogic.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/templates/gamelogic.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modified: trunk/blender/release/scripts/templates/gamelogic_basic.py
===================================================================
--- trunk/blender/release/scripts/templates/gamelogic_basic.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/templates/gamelogic_basic.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modified: trunk/blender/release/scripts/templates/gamelogic_module.py
===================================================================
--- trunk/blender/release/scripts/templates/gamelogic_module.py 2009-11-07 20:36:54 UTC (rev 24396)
+++ trunk/blender/release/scripts/templates/gamelogic_module.py 2009-11-07 22:07:46 UTC (rev 24397)
@@ -4,12 +4,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list