X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;ds=sidebyside;f=swig%2Fpmd.i;h=c07ce3abd66c410674f2069f1b94148433df3fbd;hb=bfebd28b39c1a986abc0ad47aa431a3d924e49ff;hp=b75ef339d45fc22ffc8ee6fd42c7924009b28121;hpb=6064301db9ff204e36ae69ecd502ab6e5675a2f0;p=meshio%2Fmeshio.git diff --git a/swig/pmd.i b/swig/pmd.i index b75ef33..c07ce3a 100644 --- a/swig/pmd.i +++ b/swig/pmd.i @@ -1,4 +1,11 @@ %module pmd + +/////////////////////////////////////////////////////////////////////////////// +// bytearray typemap +/////////////////////////////////////////////////////////////////////////////// +%include +%pybuffer_string(const char *src); + %{ #include using namespace meshio; @@ -24,13 +31,6 @@ using namespace pmd; %template(PBoneVector) std::vector; /////////////////////////////////////////////////////////////////////////////// -// bytearray typemap -/////////////////////////////////////////////////////////////////////////////// -%include -%pybuffer_string(const char *src); -%pybuffer_string(const char *path); - -/////////////////////////////////////////////////////////////////////////////// // meshio::pmd::IO::each_vertex /////////////////////////////////////////////////////////////////////////////// %inline %{