[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41110] branches/soc-2011-onion-uv-tools: merge with trunk 41109.

Antony Riakiotakis kalast at gmail.com
Wed Oct 19 00:12:54 CEST 2011


Revision: 41110
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41110
Author:   psy-fi
Date:     2011-10-18 22:12:53 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
merge with trunk 41109. Is it so bad that I want 2.60 splash screen? :)

Modified Paths:
--------------
    branches/soc-2011-onion-uv-tools/CMakeLists.txt
    branches/soc-2011-onion-uv-tools/build_files/cmake/cmake_consistency_check_config.py
    branches/soc-2011-onion-uv-tools/doc/manpage/blender.1
    branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Euler.py
    branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Matrix.py
    branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Quaternion.py
    branches/soc-2011-onion-uv-tools/doc/python_api/rst/bge.logic.rst
    branches/soc-2011-onion-uv-tools/doc/python_api/rst/bgl.rst
    branches/soc-2011-onion-uv-tools/doc/python_api/rst/info_best_practice.rst
    branches/soc-2011-onion-uv-tools/doc/python_api/rst/info_gotcha.rst
    branches/soc-2011-onion-uv-tools/intern/ghost/intern/GHOST_SystemSDL.h
    branches/soc-2011-onion-uv-tools/intern/ghost/intern/GHOST_WindowSDL.h
    branches/soc-2011-onion-uv-tools/intern/tools/credits_svn_gen.py
    branches/soc-2011-onion-uv-tools/po/es.po
    branches/soc-2011-onion-uv-tools/po/fr.po
    branches/soc-2011-onion-uv-tools/po/zh_CN.po
    branches/soc-2011-onion-uv-tools/release/bin/.blender/locale/es/LC_MESSAGES/blender.mo
    branches/soc-2011-onion-uv-tools/release/bin/.blender/locale/fr/LC_MESSAGES/blender.mo
    branches/soc-2011-onion-uv-tools/release/bin/.blender/locale/zh_CN/LC_MESSAGES/blender.mo
    branches/soc-2011-onion-uv-tools/release/datafiles/splash.png
    branches/soc-2011-onion-uv-tools/release/scripts/modules/addon_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/animsys_refactor.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/blend_render_info.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy/__init__.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy/ops.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy/utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_extras/anim_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_extras/image_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_extras/io_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_extras/keyconfig_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_extras/mesh_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_extras/object_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_extras/view3d_utils.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/bpy_types.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/console_python.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/console_shell.py
    branches/soc-2011-onion-uv-tools/release/scripts/modules/rna_info.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/anim.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/console.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/object.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/uvcalc_follow_active.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/uvcalc_lightmap.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/uvcalc_smart_project.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/vertexpaint_dirt.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/view3d.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_operators/wm.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_animviz.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_data_armature.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_data_bone.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_material.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_object_constraint.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_particle.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_physics_common.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/properties_texture.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/space_logic.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/space_userpref.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/space_userpref_keymap.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/space_view3d.py
    branches/soc-2011-onion-uv-tools/release/scripts/startup/bl_ui/space_view3d_toolbar.py
    branches/soc-2011-onion-uv-tools/release/scripts/templates/gamelogic_module.py
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/BKE_animsys.h
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/BKE_blender.h
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/BKE_paint.h
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/BKE_utildefines.h
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/intern/anim.c
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/intern/cloth.c
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/intern/constraint.c
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/intern/fcurve.c
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/intern/particle.c
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/intern/seqeffects.c
    branches/soc-2011-onion-uv-tools/source/blender/blenkernel/intern/softbody.c
    branches/soc-2011-onion-uv-tools/source/blender/blenlib/intern/path_util.c
    branches/soc-2011-onion-uv-tools/source/blender/blenloader/intern/readfile.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/animation/anim_channels_edit.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/datafiles/splash.png.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/include/ED_anim_api.h
    branches/soc-2011-onion-uv-tools/source/blender/editors/mesh/editmesh_lib.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/mesh/meshtools.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/physics/particle_edit.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/sculpt_paint/paint_image.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/space_outliner/outliner_edit.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/space_sequencer/sequencer_select.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/space_view3d/view3d_edit.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/space_view3d/view3d_fly.c
    branches/soc-2011-onion-uv-tools/source/blender/editors/util/crazyspace.c
    branches/soc-2011-onion-uv-tools/source/blender/imbuf/intern/IMB_indexer.h
    branches/soc-2011-onion-uv-tools/source/blender/makesdna/DNA_particle_types.h
    branches/soc-2011-onion-uv-tools/source/blender/makesrna/intern/rna_image_api.c
    branches/soc-2011-onion-uv-tools/source/blender/makesrna/intern/rna_particle.c
    branches/soc-2011-onion-uv-tools/source/blender/modifiers/intern/MOD_screw.c
    branches/soc-2011-onion-uv-tools/source/blender/modifiers/intern/MOD_simpledeform.c
    branches/soc-2011-onion-uv-tools/source/blender/python/intern/bpy_props.c
    branches/soc-2011-onion-uv-tools/source/blender/python/intern/bpy_rna.c
    branches/soc-2011-onion-uv-tools/source/blender/python/intern/bpy_rna.h
    branches/soc-2011-onion-uv-tools/source/blender/python/mathutils/mathutils_Euler.c
    branches/soc-2011-onion-uv-tools/source/blender/python/mathutils/mathutils_Matrix.c
    branches/soc-2011-onion-uv-tools/source/blender/render/intern/include/raycounter.h
    branches/soc-2011-onion-uv-tools/source/blender/render/intern/raytrace/bvh.h
    branches/soc-2011-onion-uv-tools/source/blender/windowmanager/intern/wm_operators.c
    branches/soc-2011-onion-uv-tools/source/darwin/blender.app/Contents/Info.plist
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads_applescript.scpt
    branches/soc-2011-onion-uv-tools/source/gameengine/Converter/BL_ArmatureObject.cpp
    branches/soc-2011-onion-uv-tools/source/gameengine/Expressions/ConstExpr.cpp
    branches/soc-2011-onion-uv-tools/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp

Added Paths:
-----------
    branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Color.py
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Info.plist
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/MacOS/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/MacOS/applet
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/PkgInfo
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/Scripts/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/Scripts/main.scpt
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/applet.icns
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/applet.rsrc
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/description.rtfd/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/description.rtfd/TXT.rtf
    branches/soc-2011-onion-uv-tools/source/tools/spell_check_source.py
    branches/soc-2011-onion-uv-tools/source/tools/spell_check_source_config.py

Removed Paths:
-------------
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Info.plist
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/MacOS/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/MacOS/applet
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/PkgInfo
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/Scripts/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/Scripts/main.scpt
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/applet.icns
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/applet.rsrc
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/description.rtfd/
    branches/soc-2011-onion-uv-tools/source/darwin/set_simulation_threads.app/Contents/Resources/description.rtfd/TXT.rtf

Property Changed:
----------------
    branches/soc-2011-onion-uv-tools/
    branches/soc-2011-onion-uv-tools/source/blender/editors/space_outliner/


Property changes on: branches/soc-2011-onion-uv-tools
___________________________________________________________________
Modified: svn:mergeinfo
   - /trunk/blender:39665-41052
   + /trunk/blender:39665-41109

Modified: branches/soc-2011-onion-uv-tools/CMakeLists.txt
===================================================================
--- branches/soc-2011-onion-uv-tools/CMakeLists.txt	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/CMakeLists.txt	2011-10-18 22:12:53 UTC (rev 41110)
@@ -774,7 +774,7 @@
 		set(PLATFORM_LINKFLAGS_DEBUG "/NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libc.lib")
 
 	else()
-		# keep GCC spesific stuff here
+		# keep GCC specific stuff here
 		if(CMAKE_COMPILER_IS_GNUCC)
 			set(PLATFORM_LINKLIBS "-lshell32 -lshfolder -lgdi32 -lmsvcrt -lwinmm -lmingw32 -lm -lws2_32 -lz -lstdc++ -lole32 -luuid -lwsock32")
 			set(PLATFORM_CFLAGS "-pipe -funsigned-char -fno-strict-aliasing")

Modified: branches/soc-2011-onion-uv-tools/build_files/cmake/cmake_consistency_check_config.py
===================================================================
--- branches/soc-2011-onion-uv-tools/build_files/cmake/cmake_consistency_check_config.py	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/build_files/cmake/cmake_consistency_check_config.py	2011-10-18 22:12:53 UTC (rev 41110)
@@ -27,6 +27,10 @@
     "extern/eltopo/common/openglutils.cpp",
     "extern/eltopo/eltopo3d/broadphase_blenderbvh.cpp",
     "source/blender/imbuf/intern/imbuf_cocoa.m",
+    "extern/recastnavigation/Recast/Source/RecastLog.cpp",
+    "extern/recastnavigation/Recast/Source/RecastTimer.cpp",
+    "entern/audaspace/SRC/AUD_SRCResampleFactory.cpp",
+    "entern/audaspace/SRC/AUD_SRCResampleReader.cpp",
 
     "extern/bullet2/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h",
     "extern/bullet2/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h",
@@ -41,6 +45,10 @@
     "extern/eltopo/common/meshes/TriangleIndex.hpp",
     "extern/eltopo/common/meshes/meshloader.h",
     "extern/eltopo/eltopo3d/broadphase_blenderbvh.h"
+    "extern/recastnavigation/Recast/Include/RecastLog.h",
+    "extern/recastnavigation/Recast/Include/RecastTimer.h",
+    "intern/audaspace/SRC/AUD_SRCResampleFactory.h",
+    "intern/audaspace/SRC/AUD_SRCResampleReader.h",
     )
 
 UTF8_CHECK = True

Modified: branches/soc-2011-onion-uv-tools/doc/manpage/blender.1
===================================================================
(Binary files differ)

Copied: branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Color.py (from rev 41109, trunk/blender/doc/python_api/examples/mathutils.Color.py)
===================================================================
--- branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Color.py	                        (rev 0)
+++ branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Color.py	2011-10-18 22:12:53 UTC (rev 41110)
@@ -0,0 +1,30 @@
+import mathutils
+
+# color values are represented as RGB values from 0 - 1, this is blue
+col = mathutils.Color((0.0, 0.0, 1.0))
+
+# as well as r/g/b attribute access you can adjust them by h/s/v
+col.s *= 0.5
+
+# you can access its components by attribute or index
+print("Color R:", col.r)
+print("Color G:", col[1])
+print("Color B:", col[-1])
+print("Color HSV: %.2f, %.2f, %.2f", col[:])
+
+
+# components of an existing color can be set
+col[:] = 0.0, 0.5, 1.0
+
+# components of an existing color can use slice notation to get a tuple
+print("Values: %f, %f, %f" % col[:])
+
+# colors can be added and subtracted
+col += mathutils.Color((0.25, 0.0, 0.0))
+
+# Color can be multiplied, in this example color is scaled to 0-255
+# can printed as integers
+print("Color: %d, %d, %d" % (col * 255.0)[:])
+
+# This example prints the color as hexidecimal
+print("Hexidecimal: %.2x%.2x%.2x" % (col * 255.0)[:])

Modified: branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Euler.py
===================================================================
--- branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Euler.py	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Euler.py	2011-10-18 22:12:53 UTC (rev 41110)
@@ -1,3 +1,32 @@
 import mathutils
+import math
 
-# todo
+# create a new euler with default axis rotation order
+eul = mathutils.Euler((0.0, math.radians(45.0), 0.0), 'XYZ')
+
+# rotate the euler
+eul.rotate_axis(math.radians(10.0), 'Z')
+
+# you can access its components by attribute or index
+print("Euler X", eul.x)
+print("Euler Y", eul[1])
+print("Euler Z", eul[-1])
+
+# components of an existing euler can be set
+eul[:] = 1.0, 2.0, 3.0
+
+# components of an existing euler can use slice notation to get a tuple
+print("Values: %f, %f, %f" % eul[:])
+
+# the order can be set at any time too
+eul.order = 'ZYX'
+
+# eulers can be used to rotate vectors
+vec = mathutils.Vector((0.0, 0.0, 1.0))
+vec.rotate(eul)
+
+# often its useful to convert the euler into a matrix so it can be used as
+# transformations with more flexibility
+mat_rot = eul.to_matrix()
+mat_loc = mathutils.Matrix.Translation((2.0, 3.0, 4.0))
+mat = mat_loc * mat_rot.to_4x4()

Modified: branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Matrix.py
===================================================================
--- branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Matrix.py	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Matrix.py	2011-10-18 22:12:53 UTC (rev 41110)
@@ -1,3 +1,28 @@
 import mathutils
+import math
 
-# todo
+# create a location matrix
+mat_loc = mathutils.Matrix.Translation((2.0, 3.0, 4.0))
+
+# create an identitiy matrix
+mat_sca = mathutils.Matrix.Scale(0.5, 4, (0.0, 0.0, 1.0))
+
+# create a rotation matrix
+mat_rot = mathutils.Matrix.Rotation(math.radians(45.0), 4, 'X')
+
+# combine transformations
+mat_out = mat_loc * mat_rot * mat_sca
+print(mat_out)
+
+# extract components back out of the matrix
+loc, rot, sca = mat_out.decompose()
+print(loc, rot, sca)
+
+# it can also be useful to access components of a matrix directly
+mat = mathutils.Matrix()
+mat[0][0], mat[1][0], mat[2][0] = 0.0, 1.0, 2.0
+
+mat[0][0:3] = 0.0, 1.0, 2.0
+
+# each item in a matrix is a vector so vector utility functions can be used
+mat[0].xyz = 0.0, 1.0, 2.0

Modified: branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Quaternion.py
===================================================================
--- branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Quaternion.py	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/doc/python_api/examples/mathutils.Quaternion.py	2011-10-18 22:12:53 UTC (rev 41110)
@@ -1,3 +1,23 @@
 import mathutils
+import math
 
-# todo
+# a new rotation 90 degrees about the Y axis
+quat_a = mathutils.Quaternion((0.7071068, 0.0, 0.7071068, 0.0))
+
+# passing values to Quaternion's directly can be confusing so axis, angle
+# is supported for initializing too
+quat_b = mathutils.Quaternion((0.0, 1.0, 0.0), math.radians(90.0))
+
+print("Check quaternions match", quat_a == quat_b)
+
+# like matrices, quaternions can be multiplied to accumulate rotational values
+quat_a = mathutils.Quaternion((0.0, 1.0, 0.0), math.radians(90.0))
+quat_b = mathutils.Quaternion((0.0, 0.0, 1.0), math.radians(45.0))
+quat_out = quat_a * quat_b
+
+# print the quat, euler degrees for mear mortals and (axis, angle)
+print("Final Rotation:")
+print(quat_out)
+print("%.2f, %.2f, %.2f" % tuple(math.degrees(a) for a in quat_out.to_euler()))
+print("(%.2f, %.2f, %.2f), %.2f" % (quat_out.axis[:] +
+                                    (math.degrees(quat_out.angle), )))

Modified: branches/soc-2011-onion-uv-tools/doc/python_api/rst/bge.logic.rst
===================================================================
--- branches/soc-2011-onion-uv-tools/doc/python_api/rst/bge.logic.rst	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/doc/python_api/rst/bge.logic.rst	2011-10-18 22:12:53 UTC (rev 41110)
@@ -106,7 +106,7 @@
 Matricies as used by the game engine are **row major**
 ``matrix[row][col] = float``
 
-:class:`bge.types.KX_Camera` has some examples using matricies.
+:class:`bge.types.KX_Camera` has some examples using matrices.
 
 *********
 Variables

Modified: branches/soc-2011-onion-uv-tools/doc/python_api/rst/bgl.rst
===================================================================
--- branches/soc-2011-onion-uv-tools/doc/python_api/rst/bgl.rst	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/doc/python_api/rst/bgl.rst	2011-10-18 22:12:53 UTC (rev 41110)
@@ -20,7 +20,7 @@
    See :class:`Image.gl_load` and :class:`Image.gl_load`,
    for example.
    `OpenGL.org <http://www.opengl.org>`_
-   `NeHe GameDev <nehe.gamedev.net>`_
+   `NeHe GameDev <http://nehe.gamedev.net>`_
 
 
 .. function:: glAccum(op, value):

Modified: branches/soc-2011-onion-uv-tools/doc/python_api/rst/info_best_practice.rst
===================================================================
--- branches/soc-2011-onion-uv-tools/doc/python_api/rst/info_best_practice.rst	2011-10-18 21:53:33 UTC (rev 41109)
+++ branches/soc-2011-onion-uv-tools/doc/python_api/rst/info_best_practice.rst	2011-10-18 22:12:53 UTC (rev 41110)
@@ -2,8 +2,9 @@
 Best Practice
 *************
 
+When writing you're own scripts python is great for new developers to pick up and become productive, but you can also pick up odd habits or at least write scripts that are not easy for others to understand.
 
-TODO: Intro text
+For you're own work this is of course fine, but if you want to collaborate with others or have you're work included with blender there are practices we encourage.
 
 
 Style Conventions
@@ -61,5 +62,233 @@
 Script Efficiency
 =================
 
-TODO: Campbell
+List Manipulation (General Python Tips)
+---------------------------------------
 
+
+Searching for list items
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+In Python there are some handy list functions that save you having to search through the list.
+
+Even though you're not looping on the list data **python is**, so you need to be aware of functions that will slow down your script by searching the whole list.
+
+.. code-block:: python
+
+   my_list.count(list_item)
+   my_list.index(list_item)
+   my_list.remove(list_item)

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list