py api file rename
authorCampbell Barton <ideasman42@gmail.com>
Sun, 11 Apr 2010 12:05:27 +0000 (12:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 11 Apr 2010 12:05:27 +0000 (12:05 +0000)
- prefix mathutils api.
- 2 blf.c files (annoying for debugging)
- py api docs ignore keying sets as with operators.

22 files changed:
release/scripts/modules/rna_info.py
source/blender/python/generic/blf_api.c [moved from source/blender/python/generic/blf.c with 99% similarity]
source/blender/python/generic/blf_api.h [moved from source/blender/python/generic/blf.h with 100% similarity]
source/blender/python/generic/geometry.c [moved from source/blender/python/generic/Geometry.c with 99% similarity]
source/blender/python/generic/geometry.h [moved from source/blender/python/generic/Geometry.h with 98% similarity]
source/blender/python/generic/mathutils.c [moved from source/blender/python/generic/Mathutils.c with 99% similarity]
source/blender/python/generic/mathutils.h [moved from source/blender/python/generic/Mathutils.h with 97% similarity]
source/blender/python/generic/mathutils_euler.c [moved from source/blender/python/generic/euler.c with 99% similarity]
source/blender/python/generic/mathutils_euler.h [moved from source/blender/python/generic/euler.h with 100% similarity]
source/blender/python/generic/mathutils_matrix.c [moved from source/blender/python/generic/matrix.c with 99% similarity]
source/blender/python/generic/mathutils_matrix.h [moved from source/blender/python/generic/matrix.h with 100% similarity]
source/blender/python/generic/mathutils_quat.c [moved from source/blender/python/generic/quat.c with 99% similarity]
source/blender/python/generic/mathutils_quat.h [moved from source/blender/python/generic/quat.h with 100% similarity]
source/blender/python/generic/mathutils_vector.c [moved from source/blender/python/generic/vector.c with 99% similarity]
source/blender/python/generic/mathutils_vector.h [moved from source/blender/python/generic/vector.h with 100% similarity]
source/blender/python/intern/bpy.c
source/blender/python/intern/bpy_rna.c
source/gameengine/Converter/KX_IpoConvert.cpp
source/gameengine/Expressions/PyObjectPlus.h
source/gameengine/Ketsji/KX_PyMath.h
source/gameengine/Ketsji/KX_PythonInit.cpp
source/gameengine/VideoTexture/ImageBuff.cpp

index 3887faa2ac9d89180b0870f92ae87623acec9094..15500c94b661f21945a6f703534b95272ba5d156 100644 (file)
@@ -57,6 +57,8 @@ def rna_id_ignore(rna_id):
         return True
     if "_HT_" in rna_id:
         return True
+    if "_KSI_" in rna_id:
+        return True
     return False
 
 def range_str(val):
similarity index 99%
rename from source/blender/python/generic/blf.c
rename to source/blender/python/generic/blf_api.c
index eda13db57b519b0f979dea6a265b291df8605050..f1cbd0f7e7e044442962644aff2330717349569b 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 #include <Python.h>
-#include "blf.h"
+#include "blf_api.h"
 
 #include "../../blenfont/BLF_api.h"
 
similarity index 99%
rename from source/blender/python/generic/Geometry.c
rename to source/blender/python/generic/geometry.c
index 158b07b1be548240fb5b056bcd6029a1d8633953..5ba2d7f7a7429f1cb1e3321bf6807102d5765a21 100644 (file)
@@ -27,7 +27,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "Geometry.h"
+#include "geometry.h"
 
 /* Used for PolyFill */
 #include "BKE_displist.h"
similarity index 98%
rename from source/blender/python/generic/Geometry.h
rename to source/blender/python/generic/geometry.h
index 1e17ca6bf279be5b2729a12477a0f01ae6dd7f37..401efcc788834b905b770ebe48012d0d5967502e 100644 (file)
@@ -32,7 +32,7 @@
 #define EXPP_Geometry_H
 
 #include <Python.h>
-#include "Mathutils.h"
+#include "mathutils.h"
 
 PyObject *Geometry_Init(void);
 
similarity index 99%
rename from source/blender/python/generic/Mathutils.c
rename to source/blender/python/generic/mathutils.c
index 542bf7a6ca9c7b33e4c00fe357b164eb4d68be3a..2a3912c1787409910ee1b66174ac8574d8755334 100644 (file)
@@ -47,7 +47,7 @@
  * Moved to Geometry module: Intersect, TriangleArea, TriangleNormal, QuadNormal, LineIntersect
  */
 
-#include "Mathutils.h"
+#include "mathutils.h"
 
 #include "BLI_math.h"
 
similarity index 97%
rename from source/blender/python/generic/Mathutils.h
rename to source/blender/python/generic/mathutils.h
index 869ac4d70df8f7b04bcd12ba5d12125d1b217296..9457c254113a983fbe41c738e042514e6d3f1090 100644 (file)
 
 #include <Python.h>
 
-#include "vector.h"
-#include "matrix.h"
-#include "quat.h"
-#include "euler.h"
+#include "mathutils_vector.h"
+#include "mathutils_matrix.h"
+#include "mathutils_quat.h"
+#include "mathutils_euler.h"
 
 /* Can cast different mathutils types to this, use for generic funcs */
 
similarity index 99%
rename from source/blender/python/generic/euler.c
rename to source/blender/python/generic/mathutils_euler.c
index 892e42657b7614e7d5c4423b087a0528ca8ef2c1..e4759a57d22ece3ecfe099ec24e7473680f85f1c 100644 (file)
@@ -26,7 +26,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "Mathutils.h"
+#include "mathutils.h"
 
 #include "BLI_math.h"
 #include "BKE_utildefines.h"
similarity index 99%
rename from source/blender/python/generic/matrix.c
rename to source/blender/python/generic/mathutils_matrix.c
index 216139dc44f97102b5109ace94ab8c2846800ae5..67f91d19d1fcea387a1fd7c2caf7c5a0b15950d1 100644 (file)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "Mathutils.h"
+#include "mathutils.h"
 
 #include "BKE_utildefines.h"
 #include "BLI_math.h"
similarity index 99%
rename from source/blender/python/generic/quat.c
rename to source/blender/python/generic/mathutils_quat.c
index 36d01e7aa9f2d0da3f83db9bce19e1436ba9827d..2e51c5ae0ece606aa4b9f8eea76fc80bde278313 100644 (file)
@@ -26,7 +26,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "Mathutils.h"
+#include "mathutils.h"
 
 #include "BLI_math.h"
 #include "BKE_utildefines.h"
similarity index 99%
rename from source/blender/python/generic/vector.c
rename to source/blender/python/generic/mathutils_vector.c
index fa26946a68277949c19f5a54777d88bfb39de72f..e4364865d257abb52ac893675074cfd7d4341e0a 100644 (file)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "Mathutils.h"
+#include "mathutils.h"
 
 #include "BLI_blenlib.h"
 #include "BKE_utildefines.h"
index 3f8daec0161168133994fb59ad221cedd321649e..9bd67f678f8bf379908df12e30215f6f53113dcd 100644 (file)
@@ -35,9 +35,9 @@
 #include "BLI_path_util.h"
  
  /* external util modules */
-#include "../generic/Geometry.h"
+#include "../generic/geometry.h"
 #include "../generic/bgl.h"
-#include "../generic/blf.h"
+#include "../generic/blf_api.h"
 #include "../generic/IDProp.h"
 
 static char bpy_home_paths_doc[] =
index adb8247682adf4bfe3bff6bf4439971c4974f176..860c1e32875ee86db9976acfab80cdb14eac1711 100644 (file)
@@ -50,7 +50,7 @@
 #define USE_MATHUTILS
 
 #ifdef USE_MATHUTILS
-#include "../generic/Mathutils.h" /* so we can have mathutils callbacks */
+#include "../generic/mathutils.h" /* so we can have mathutils callbacks */
 #include "../generic/IDProp.h" /* for IDprop lookups */
 
 
index 7c6b59a42bd0095bb8c8fdc381e9c23171d400c7..4adfa842fd7a854ad629575331d49ac7e9bd722e 100644 (file)
@@ -121,7 +121,7 @@ void BL_ConvertIpos(struct Object* blenderobject,KX_GameObject* gameobj,KX_Blend
                        )
                );
 
-               char *rotmode, *drotmode;
+               const char *rotmode, *drotmode;
 
                switch(blenderobject->rotmode)
                {
index d81753ce64d90f390c9d7276f5e5ff6d8518fb47..e19f4800ca5e5d7caeba52bf2a64ce10ca44db7d 100644 (file)
@@ -46,7 +46,7 @@
 #ifndef DISABLE_PYTHON
 #ifdef USE_MATHUTILS
 extern "C" {
-#include "../../blender/python/generic/Mathutils.h" /* so we can have mathutils callbacks */
+#include "../../blender/python/generic/mathutils.h" /* so we can have mathutils callbacks */
 }
 #endif
 
index 8c14ac0e96cf7f1d0055f7bb90ff1986ae529e12..9c9688f79cd228e4ebf5db13df0f5573818eea0f 100644 (file)
@@ -45,7 +45,7 @@
 #ifndef DISABLE_PYTHON
 #ifdef USE_MATHUTILS
 extern "C" {
-#include "../../blender/python/generic/Mathutils.h" /* so we can have mathutils callbacks */
+#include "../../blender/python/generic/mathutils.h" /* so we can have mathutils callbacks */
 }
 #endif
 
index 7dec4e4f97f85550c90bfcf789a75249db532b3b..8d4a6d3f8971d8eb6daeb40641d7cc7afcc5cd59 100644 (file)
@@ -38,8 +38,8 @@
 
 extern "C" {
        #include "bpy_internal_import.h"  /* from the blender python api, but we want to import text too! */
-       #include "Mathutils.h" // Blender.Mathutils module copied here so the blenderlayer can use.
-       #include "Geometry.h" // Blender.Geometry module copied here so the blenderlayer can use.
+       #include "mathutils.h" // Blender.Mathutils module copied here so the blenderlayer can use.
+       #include "geometry.h" // Blender.Geometry module copied here so the blenderlayer can use.
        #include "bgl.h"
 
        #include "marshal.h" /* python header for loading/saving dicts */
index 0bb0cf5951163e2faad98617e30df51e39a5ab17..926468c662ed31012bb027e13309c449d1e0d1b0 100644 (file)
@@ -128,7 +128,7 @@ void ImageBuff::clear (short width, short height, unsigned char color)
        memset(m_image, color, size*4);
        // and change the alpha channel
        p = &((unsigned char*)m_image)[3];
-       for (size; size>0; size--)
+       for (; size>0; size--)
        {
                *p = 0xFF;
                p += 4;