Revision: 15393
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15393
Author:   jaguarandi
Date:     2008-07-01 00:57:52 +0200 (Tue, 01 Jul 2008)

Log Message:
-----------
svn merge -r 15292:15392 
https://svn.blender.org/svnroot/bf-blender/trunk/blender

Modified Paths:
--------------
    branches/soc-2008-jaguarandi/extern/libredcode/debayer.c
    branches/soc-2008-jaguarandi/intern/iksolver/intern/IK_QTask.h
    branches/soc-2008-jaguarandi/intern/moto/include/MT_random.h
    branches/soc-2008-jaguarandi/intern/moto/intern/MT_random.cpp
    
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/gamelogic/SCA_GameLogic.vcproj
    
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/ketsji/KX_ketsji.vcproj
    branches/soc-2008-jaguarandi/release/scripts/DirectX8Exporter.py
    branches/soc-2008-jaguarandi/release/scripts/bpymodules/BPyArmature.py
    branches/soc-2008-jaguarandi/source/blender/blenkernel/BKE_ipo.h
    branches/soc-2008-jaguarandi/source/blender/blenkernel/intern/action.c
    branches/soc-2008-jaguarandi/source/blender/blenkernel/intern/image.c
    branches/soc-2008-jaguarandi/source/blender/blenkernel/intern/ipo.c
    branches/soc-2008-jaguarandi/source/blender/blenkernel/intern/modifier.c
    
branches/soc-2008-jaguarandi/source/blender/blenkernel/intern/particle_system.c
    branches/soc-2008-jaguarandi/source/blender/blenkernel/intern/sca.c
    branches/soc-2008-jaguarandi/source/blender/blenkernel/intern/text.c
    branches/soc-2008-jaguarandi/source/blender/blenlib/BLI_arithb.h
    branches/soc-2008-jaguarandi/source/blender/blenlib/intern/arithb.c
    branches/soc-2008-jaguarandi/source/blender/blenloader/intern/readfile.c
    branches/soc-2008-jaguarandi/source/blender/blenloader/intern/writefile.c
    branches/soc-2008-jaguarandi/source/blender/imbuf/IMB_imbuf_types.h
    branches/soc-2008-jaguarandi/source/blender/imbuf/intern/IMB_anim.h
    branches/soc-2008-jaguarandi/source/blender/imbuf/intern/anim.c
    branches/soc-2008-jaguarandi/source/blender/include/BIF_butspace.h
    branches/soc-2008-jaguarandi/source/blender/include/BIF_interface.h
    branches/soc-2008-jaguarandi/source/blender/include/BIF_oops.h
    branches/soc-2008-jaguarandi/source/blender/include/butspace.h
    branches/soc-2008-jaguarandi/source/blender/include/transform.h
    branches/soc-2008-jaguarandi/source/blender/makesdna/DNA_actuator_types.h
    branches/soc-2008-jaguarandi/source/blender/makesdna/DNA_controller_types.h
    branches/soc-2008-jaguarandi/source/blender/makesdna/DNA_object_types.h
    branches/soc-2008-jaguarandi/source/blender/makesdna/DNA_sensor_types.h
    branches/soc-2008-jaguarandi/source/blender/makesdna/DNA_userdef_types.h
    
branches/soc-2008-jaguarandi/source/blender/nodes/intern/CMP_nodes/CMP_math.c
    branches/soc-2008-jaguarandi/source/blender/python/api2_2x/CurNurb.c
    branches/soc-2008-jaguarandi/source/blender/python/api2_2x/Lamp.c
    branches/soc-2008-jaguarandi/source/blender/python/api2_2x/Mathutils.c
    branches/soc-2008-jaguarandi/source/blender/python/api2_2x/doc/Curve.py
    branches/soc-2008-jaguarandi/source/blender/render/intern/source/pipeline.c
    branches/soc-2008-jaguarandi/source/blender/src/buttons_editing.c
    branches/soc-2008-jaguarandi/source/blender/src/buttons_logic.c
    branches/soc-2008-jaguarandi/source/blender/src/buttons_scene.c
    branches/soc-2008-jaguarandi/source/blender/src/drawaction.c
    branches/soc-2008-jaguarandi/source/blender/src/drawview.c
    branches/soc-2008-jaguarandi/source/blender/src/editaction.c
    branches/soc-2008-jaguarandi/source/blender/src/editfont.c
    branches/soc-2008-jaguarandi/source/blender/src/editmesh_mods.c
    branches/soc-2008-jaguarandi/source/blender/src/editobject.c
    branches/soc-2008-jaguarandi/source/blender/src/editseq.c
    branches/soc-2008-jaguarandi/source/blender/src/editsima.c
    branches/soc-2008-jaguarandi/source/blender/src/interface.c
    branches/soc-2008-jaguarandi/source/blender/src/oops.c
    branches/soc-2008-jaguarandi/source/blender/src/poseobject.c
    branches/soc-2008-jaguarandi/source/blender/src/sequence.c
    branches/soc-2008-jaguarandi/source/blender/src/space.c
    branches/soc-2008-jaguarandi/source/blender/src/transform.c
    branches/soc-2008-jaguarandi/source/blender/src/transform_constraints.c
    branches/soc-2008-jaguarandi/source/blender/src/transform_generics.c
    branches/soc-2008-jaguarandi/source/blender/src/transform_snap.c
    branches/soc-2008-jaguarandi/source/blender/src/view.c
    branches/soc-2008-jaguarandi/source/creator/creator.c
    
branches/soc-2008-jaguarandi/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.h
    
branches/soc-2008-jaguarandi/source/gameengine/Converter/BL_ActionActuator.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Converter/BL_ActionActuator.h
    
branches/soc-2008-jaguarandi/source/gameengine/Converter/BL_BlenderDataConversion.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Converter/BL_ShapeDeformer.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Converter/BL_ShapeDeformer.h
    branches/soc-2008-jaguarandi/source/gameengine/Converter/BL_SkinDeformer.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Converter/BL_SkinDeformer.h
    
branches/soc-2008-jaguarandi/source/gameengine/Converter/KX_ConvertActuators.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Converter/KX_ConvertControllers.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Converter/KX_ConvertSensors.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Expressions/Value.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Expressions/Value.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_2DFilterActuator.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_AlwaysSensor.h
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_IActuator.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_IActuator.h
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_IController.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_IController.h
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_IObject.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_IObject.h
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_ISensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_ISensor.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_JoystickSensor.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_KeyboardSensor.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_LogicManager.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_MouseSensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_MouseSensor.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_PropertySensor.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_PropertySensor.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_PythonController.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_PythonController.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_RandomSensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_RandomSensor.h
    
branches/soc-2008-jaguarandi/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GamePlayer/common/GPC_RenderTools.h
    
branches/soc-2008-jaguarandi/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.h
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_BulletPhysicsController.h
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_GameObject.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_GameObject.h
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_IPhysicsController.h
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_MouseFocusSensor.h
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_ObjectActuator.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_ObjectActuator.h
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_RadarSensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_RaySensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_RaySensor.h
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_Scene.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_SumoPhysicsController.h
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_TouchSensor.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_TouchSensor.h
    branches/soc-2008-jaguarandi/source/gameengine/PyDoc/KX_GameObject.py
    branches/soc-2008-jaguarandi/source/gameengine/PyDoc/SCA_PythonController.py
    
branches/soc-2008-jaguarandi/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Rasterizer/RAS_2DFilterManager.h
    branches/soc-2008-jaguarandi/source/gameengine/Rasterizer/RAS_IRenderTools.h
    
branches/soc-2008-jaguarandi/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp

Added Paths:
-----------
    branches/soc-2008-jaguarandi/release/scripts/animation_bake_constraints.py
    branches/soc-2008-jaguarandi/release/scripts/c3d_import.py
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_NANDController.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_NANDController.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_NORController.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_NORController.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_XNORController.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_XNORController.h
    
branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_XORController.cpp
    branches/soc-2008-jaguarandi/source/gameengine/GameLogic/SCA_XORController.h
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_SCA_DynamicActuator.cpp
    
branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_SCA_DynamicActuator.h
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_StateActuator.cpp
    branches/soc-2008-jaguarandi/source/gameengine/Ketsji/KX_StateActuator.h

Modified: branches/soc-2008-jaguarandi/extern/libredcode/debayer.c
===================================================================
--- branches/soc-2008-jaguarandi/extern/libredcode/debayer.c    2008-06-30 
16:21:08 UTC (rev 15392)
+++ branches/soc-2008-jaguarandi/extern/libredcode/debayer.c    2008-06-30 
22:57:52 UTC (rev 15393)
@@ -9,8 +9,6 @@
        int x,y;
        int pix_max = 4096;
        int mask = pix_max - 1;
-       float Kb = 0.0722;
-       float Kr = 0.2126;
        float *o;
 
        for (y = 0; y < height; y++) {
@@ -25,9 +23,9 @@
                        float y2  = (planes[3][i] & mask);
                        float y2p = (planes[3][i_p] & mask);
 
-                       float b_ = cb * (1.0 - Kb)/(pix_max/2);
-                       float r_ = cr * (1.0 - Kr)/(pix_max/2);
-                       float g_ = (- Kr * r_ - Kb * b_)/(1.0 - Kr - Kb);
+                       float b_ = cb /(pix_max/2);
+                       float r_ = cr /(pix_max/2);
+                       float g_ = 0.0;
                
                        float y_[4] = {y1 / pix_max, 
                                       (y2 + y2p)/2 / pix_max, 
@@ -68,8 +66,6 @@
        int x,y;
        int pix_max = 4096;
        int mask = pix_max - 1;
-       float Kb = 0.0722;
-       float Kr = 0.2126;
 
        for (y = 0; y < height; y++) {
                float *o = out + width * (height - y - 1);
@@ -80,9 +76,9 @@
                        float cr  = (planes[2][i] & mask)  - pix_max/2;
                        float y2  = (planes[3][i] & mask);
 
-                       float b_ = cb * (1.0 - Kb)/(pix_max/2);
-                       float r_ = cr * (1.0 - Kr)/(pix_max/2);
-                       float g_ = (- Kr * r_ - Kb * b_)/(1.0 - Kr - Kb);
+                       float b_ = cb /(pix_max/2);
+                       float r_ = cr /(pix_max/2);
+                       float g_ = 0.0;
                        
                        float y = (y1 + y2)/2 / pix_max;
 
@@ -101,8 +97,6 @@
        int x,y;
        int pix_max = 4096;
        int mask = pix_max - 1;
-       float Kb = 0.0722;
-       float Kr = 0.2126;
 
        for (y = 0; y < height; y += 2) {
                float *o = out + (width/2) * (height/2 - y/2 - 1);
@@ -113,9 +107,9 @@
                        float cr  = (planes[2][i] & mask)  - pix_max/2;
                        float y2  = planes[3][i] & mask;
 
-                       float b_ = cb * (1.0 - Kb)/(pix_max/2);
-                       float r_ = cr * (1.0 - Kr)/(pix_max/2);
-                       float g_ = (- Kr * r_ - Kb * b_)/(1.0 - Kr - Kb);
+                       float b_ = cb /(pix_max/2);
+                       float r_ = cr /(pix_max/2);
+                       float g_ = 0.0;
                        
                        float y = (y1 + y2)/2 / pix_max;
                        

Modified: branches/soc-2008-jaguarandi/intern/iksolver/intern/IK_QTask.h
===================================================================
--- branches/soc-2008-jaguarandi/intern/iksolver/intern/IK_QTask.h      
2008-06-30 16:21:08 UTC (rev 15392)
+++ branches/soc-2008-jaguarandi/intern/iksolver/intern/IK_QTask.h      
2008-06-30 22:57:52 UTC (rev 15393)
@@ -74,7 +74,7 @@
 
        virtual bool PositionTask() const { return false; }
 
-       virtual void Scale(float scale) {}
+       virtual void Scale(float) {}
 
 protected:
        int m_id;

Modified: branches/soc-2008-jaguarandi/intern/moto/include/MT_random.h
===================================================================
--- branches/soc-2008-jaguarandi/intern/moto/include/MT_random.h        
2008-06-30 16:21:08 UTC (rev 15392)
+++ branches/soc-2008-jaguarandi/intern/moto/include/MT_random.h        
2008-06-30 22:57:52 UTC (rev 15393)
@@ -31,10 +31,10 @@
 
 #include <limits.h>
 
-#define MT_RAND_MAX ULONG_MAX
+#define MT_RAND_MAX UINT_MAX
 
-extern void          MT_srand(unsigned long);
-extern unsigned long MT_rand();
+extern void          MT_srand(unsigned int);
+extern unsigned int  MT_rand();
 
 #endif
 

Modified: branches/soc-2008-jaguarandi/intern/moto/intern/MT_random.cpp
===================================================================
--- branches/soc-2008-jaguarandi/intern/moto/intern/MT_random.cpp       
2008-06-30 16:21:08 UTC (rev 15392)
+++ branches/soc-2008-jaguarandi/intern/moto/intern/MT_random.cpp       
2008-06-30 22:57:52 UTC (rev 15393)
@@ -76,11 +76,11 @@
 #define TEMPERING_SHIFT_T(y)  (y << 15)
 #define TEMPERING_SHIFT_L(y)  (y >> 18)
 
-static unsigned long mt[N]; /* the array for the state vector  */
+static unsigned int mt[N]; /* the array for the state vector  */
 static int mti = N+1; /* mti==N+1 means mt[N] is not initialized */
 
 /* initializing the array with a NONZERO seed */
-void MT_srand(unsigned long seed)
+void MT_srand(unsigned int seed)
 {
     /* setting initial seeds to mt[N] using         */
     /* the generator Line 25 of Table 1 in          */
@@ -91,12 +91,12 @@
         mt[mti] = (69069 * mt[mti-1]) & 0xffffffff;
 }
 
-unsigned long MT_rand()
+unsigned int MT_rand()
 {
-    static unsigned long mag01[2] = { 0x0, MATRIX_A };
+    static unsigned int mag01[2] = { 0x0, MATRIX_A };
     /* mag01[x] = x * MATRIX_A  for x=0,1 */
 
-    unsigned long y;
+    unsigned int y;
 
     if (mti >= N) { /* generate N words at one time */
         int kk;

Modified: 
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/gamelogic/SCA_GameLogic.vcproj
===================================================================
--- 
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/gamelogic/SCA_GameLogic.vcproj
     2008-06-30 16:21:08 UTC (rev 15392)
+++ 
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/gamelogic/SCA_GameLogic.vcproj
     2008-06-30 22:57:52 UTC (rev 15393)
@@ -396,6 +396,12 @@
                                
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_MouseSensor.cpp">
                        </File>
                        <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_NANDController.cpp">
+                       </File>
+                       <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_NORController.cpp">
+                       </File>
+                       <File
                                
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_ORController.cpp">
                        </File>
                        <File
@@ -425,6 +431,12 @@
                        <File
                                
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_TimeEventManager.cpp">
                        </File>
+                       <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_XNORController.cpp">
+                       </File>
+                       <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_XORController.cpp">
+                       </File>
                </Filter>
                <Filter
                        Name="Header Files"
@@ -499,6 +511,12 @@
                                
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_MouseSensor.h">
                        </File>
                        <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_NANDController.h">
+                       </File>
+                       <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_NORController.h">
+                       </File>
+                       <File
                                
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_ORController.h">
                        </File>
                        <File
@@ -528,6 +546,12 @@
                        <File
                                
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_TimeEventManager.h">
                        </File>
+                       <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_XNORController.h">
+                       </File>
+                       <File
+                               
RelativePath="..\..\..\source\gameengine\GameLogic\SCA_XORController.h">
+                       </File>
                </Filter>
        </Files>
        <Globals>

Modified: 
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/ketsji/KX_ketsji.vcproj
===================================================================
--- 
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/ketsji/KX_ketsji.vcproj
    2008-06-30 16:21:08 UTC (rev 15392)
+++ 
branches/soc-2008-jaguarandi/projectfiles_vc7/gameengine/ketsji/KX_ketsji.vcproj
    2008-06-30 22:57:52 UTC (rev 15393)
@@ -463,6 +463,9 @@
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SCA_AddObjectActuator.cpp">
                                </File>
                                <File
+                                       
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SCA_DynamicActuator.cpp">
+                               </File>
+                               <File
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SCA_EndObjectActuator.cpp">
                                </File>
                                <File
@@ -475,6 +478,9 @@
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SoundActuator.cpp">
                                </File>
                                <File
+                                       
RelativePath="..\..\..\source\gameengine\Ketsji\KX_StateActuator.cpp">
+                               </File>
+                               <File
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_TrackToActuator.cpp">
                                </File>
                                <File
@@ -684,6 +690,9 @@
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SCA_AddObjectActuator.h">
                                </File>
                                <File
+                                       
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SCA_DynamicActuator.h">
+                               </File>
+                               <File
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SCA_EndObjectActuator.h">
                                </File>
                                <File
@@ -696,6 +705,9 @@
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_SoundActuator.h">
                                </File>
                                <File
+                                       
RelativePath="..\..\..\source\gameengine\Ketsji\KX_StateActuator.h">
+                               </File>
+                               <File
                                        
RelativePath="..\..\..\source\gameengine\Ketsji\KX_TrackToActuator.h">
                                </File>
                                <File

Modified: branches/soc-2008-jaguarandi/release/scripts/DirectX8Exporter.py
===================================================================
--- branches/soc-2008-jaguarandi/release/scripts/DirectX8Exporter.py    
2008-06-30 16:21:08 UTC (rev 15392)
+++ branches/soc-2008-jaguarandi/release/scripts/DirectX8Exporter.py    
2008-06-30 22:57:52 UTC (rev 15393)
@@ -6,9 +6,9 @@
 # Group: 'Export'
 # Tooltip: 'Export to DirectX text file format format for XNA Animation 
Component Library.'
 """
-__author__ = "minahito (original:Arben (Ben) Omari)"
-__url__ = ("blender", "blenderartists.org", "Adjuster's site 
http://sunday-lab.blogspot.com/, Author's site http://www.omariben.too.it";)
-__version__ = "3.0"
+__author__ = "vertex color exporting feature is added by mnemoto 
(original:minahito (original:Arben (Ben) Omari))"
+__url__ = ("blender", "elysiun", "Adjuster's site 
http://sunday-lab.blogspot.com/, Author's site 
http://www.omariben.too.it","Adjuster's site http://ex.homeunix.net/";)
+__version__ = "3.1"
 
 __bpydoc__ = """\
 This script exports a Blender mesh with armature to DirectX 8's text file
@@ -444,6 +444,7 @@
                self.writeMeshMaterialList(obj, mesh, tex)
                self.writeMeshNormals(obj, mesh)
                self.writeMeshTextureCoords(obj, mesh)
+               self.writeMeshVertexColors(obj, mesh)
                self.file.write("  }  // End of the Mesh %s \n" % (obj.name))
                
                                        
@@ -464,6 +465,7 @@
                                self.writeMeshMaterialList(obj, mesh, tex)
                                self.writeMeshNormals(obj, mesh)
                                self.writeMeshTextureCoords(obj, mesh)
+                               self.writeMeshVertexColors(obj, mesh)
                                self.file.write(" }\n")
                                self.file.write("}\n")
                                ind = objs.index(obj)
@@ -1047,6 +1049,32 @@
                                                self.file.write(",\n")
 
                        self.file.write("}  //End of MeshTextureCoords\n")
+
+       #***********************************************
+       #MESH VORTEX COLORS
+       #***********************************************
+       def writeMeshVertexColors(self, name, mesh):
+               if mesh.hasVertexColours():
+                       self.file.write("MeshVertexColors {\n")
+                       #VERTICES NUMBER
+                       numvert = reduce( lambda i,f: len(f)+i, mesh.faces, 0)
+                       self.file.write("%d;\n" % (numvert))
+                       #VERTEX COLORS
+                       
+                       vcounter =0
+                       for f in mesh.faces:
+                               col = f.col
+                               for i,c in enumerate(col):
+                                       # Note vcol alpha has no meaning

@@ Diff output truncated at 10240 characters. @@

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to