Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-06 17:53:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-06 17:53:52 +0400
commit4b30b22ecfd58cd57aa3dec478d644f0dc28e189 (patch)
treeb33451e1d1c693ff69ebefc646b00e46414b1ae5 /source/blender/python/mathutils
parent4848f9029a7cf70324888f18ccfcdea3fa50392b (diff)
Fix for recent kdtree py module with MSVC
also remove submodule includes from mathutils.h
Diffstat (limited to 'source/blender/python/mathutils')
-rw-r--r--source/blender/python/mathutils/mathutils.c6
-rw-r--r--source/blender/python/mathutils/mathutils.h8
-rw-r--r--source/blender/python/mathutils/mathutils_geometry.c1
-rw-r--r--source/blender/python/mathutils/mathutils_geometry.h2
-rw-r--r--source/blender/python/mathutils/mathutils_kdtree.c2
-rw-r--r--source/blender/python/mathutils/mathutils_kdtree.h2
-rw-r--r--source/blender/python/mathutils/mathutils_noise.h2
7 files changed, 14 insertions, 9 deletions
diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c
index dd3e5dec8a4..1ecb2c08bc1 100644
--- a/source/blender/python/mathutils/mathutils.c
+++ b/source/blender/python/mathutils/mathutils.c
@@ -474,6 +474,12 @@ static struct PyModuleDef M_Mathutils_module_def = {
NULL, /* m_free */
};
+
+/* submodules only */
+#include "mathutils_geometry.h"
+#include "mathutils_kdtree.h"
+#include "mathutils_noise.h"
+
PyMODINIT_FUNC PyInit_mathutils(void)
{
PyObject *mod;
diff --git a/source/blender/python/mathutils/mathutils.h b/source/blender/python/mathutils/mathutils.h
index df1d5704190..4c057a14461 100644
--- a/source/blender/python/mathutils/mathutils.h
+++ b/source/blender/python/mathutils/mathutils.h
@@ -55,10 +55,10 @@ typedef struct {
#include "mathutils_Euler.h"
#include "mathutils_Color.h"
-/* utility submodules */
-#include "mathutils_geometry.h"
-#include "mathutils_noise.h"
-#include "mathutils_kdtree.h"
+// /* utility submodules */
+//
+//
+//#include "mathutils_kdtree.h"
PyObject *BaseMathObject_owner_get(BaseMathObject *self, void *);
PyObject *BaseMathObject_is_wrapped_get(BaseMathObject *self, void *);
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index 29e7779b89a..108ebfa3a94 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -27,6 +27,7 @@
#include <Python.h>
+#include "mathutils.h"
#include "mathutils_geometry.h"
/* Used for PolyFill */
diff --git a/source/blender/python/mathutils/mathutils_geometry.h b/source/blender/python/mathutils/mathutils_geometry.h
index 8641a3f7758..7f6a1a3887f 100644
--- a/source/blender/python/mathutils/mathutils_geometry.h
+++ b/source/blender/python/mathutils/mathutils_geometry.h
@@ -27,8 +27,6 @@
* \ingroup pymathutils
*/
-#include "mathutils.h"
-
PyMODINIT_FUNC PyInit_mathutils_geometry(void);
#endif /* __MATHUTILS_GEOMETRY_H__ */
diff --git a/source/blender/python/mathutils/mathutils_kdtree.c b/source/blender/python/mathutils/mathutils_kdtree.c
index aa9c7eecc6b..d48ab803740 100644
--- a/source/blender/python/mathutils/mathutils_kdtree.c
+++ b/source/blender/python/mathutils/mathutils_kdtree.c
@@ -35,7 +35,9 @@
#include "BLI_kdtree.h"
#include "../generic/py_capi_utils.h"
+
#include "mathutils.h"
+#include "mathutils_kdtree.h" /* own include */
#include "BLI_strict_flags.h"
diff --git a/source/blender/python/mathutils/mathutils_kdtree.h b/source/blender/python/mathutils/mathutils_kdtree.h
index 84216617712..33c0cbe23fd 100644
--- a/source/blender/python/mathutils/mathutils_kdtree.h
+++ b/source/blender/python/mathutils/mathutils_kdtree.h
@@ -26,7 +26,7 @@
#ifndef __MATHUTILS_KDTREE_H__
#define __MATHUTILS_KDTREE_H__
-PyObject *PyInit_mathutils_kdtree(void);
+PyMODINIT_FUNC PyInit_mathutils_kdtree(void);
extern PyTypeObject PyKDTree_Type;
diff --git a/source/blender/python/mathutils/mathutils_noise.h b/source/blender/python/mathutils/mathutils_noise.h
index 2ed3e32f4f1..f2218b28f8f 100644
--- a/source/blender/python/mathutils/mathutils_noise.h
+++ b/source/blender/python/mathutils/mathutils_noise.h
@@ -27,8 +27,6 @@
#ifndef __MATHUTILS_NOISE_H__
#define __MATHUTILS_NOISE_H__
-#include "mathutils.h"
-
PyMODINIT_FUNC PyInit_mathutils_noise(void);
PyMODINIT_FUNC PyInit_mathutils_noise_types(void);
PyMODINIT_FUNC PyInit_mathutils_noise_metrics(void);