OSDN Git Service

fix blender2.5 export.
[meshio/meshio.git] / swig / pmd.i
index 41c1d37..c07ce3a 100644 (file)
@@ -1,4 +1,11 @@
 %module pmd
+
+///////////////////////////////////////////////////////////////////////////////
+// bytearray typemap
+///////////////////////////////////////////////////////////////////////////////
+%include <pybuffer.i>
+%pybuffer_string(const char *src);
+
 %{
 #include <pmd.h>
 using namespace meshio;
@@ -124,3 +131,4 @@ meshio::pmd::ToonTexture *getToonTexture(int index)
 }
 
 }
+