From d00b238f932cca5e61ab95cf7f68ccda299da6e5 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 28 Jul 2014 02:20:10 -0700 Subject: [PATCH] windows compilation fix --- src/libpython/render.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libpython/render.cpp b/src/libpython/render.cpp index e3ae9c6a..7d498aba 100644 --- a/src/libpython/render.cpp +++ b/src/libpython/render.cpp @@ -53,6 +53,10 @@ static AABB shapekdtree_getAABB(const ShapeKDTree *kdtree) { return kdtree->getAABB(); } +static bool shapekdtree_isBuilt(const ShapeKDTree *kdtree) { + return kdtree->isBuilt(); +} + static bp::object shapekdtree_rayIntersect(const ShapeKDTree *kdtree, const Ray &ray) { Intersection its; @@ -330,7 +334,7 @@ void export_render() { .def("getPrimitiveCount", &ShapeKDTree::getPrimitiveCount) .def("addShape", &ShapeKDTree::addShape) .def("build", &ShapeKDTree::build) - .def("isBuilt", &ShapeKDTree::isBuilt) + .def("isBuilt", &shapekdtree_isBuilt) .def("getAABB", &shapekdtree_getAABB, BP_RETURN_VALUE) .def("getShapes", &shapekdtree_getShapes) .def("rayIntersect", &shapekdtree_rayIntersect);