diff --git a/port/swig/interface/aiMaterial.i b/port/swig/interface/aiMaterial.i index 19177e5c8..0d87da5a7 100644 --- a/port/swig/interface/aiMaterial.i +++ b/port/swig/interface/aiMaterial.i @@ -4,9 +4,20 @@ ASSIMP_ARRAY(aiMaterial, aiMaterialProperty*, mProperties, $self->mNumProperties) +%include +%apply enum SWIGTYPE *OUTPUT { aiTextureMapping* mapping }; +%apply unsigned int *OUTPUT { unsigned int* uvindex }; +%apply float *OUTPUT { float* blend }; +%apply enum SWIGTYPE *OUTPUT { aiTextureOp* op }; + %include "aiMaterial.h" -%include +%clear aiTextureOp* op; +%clear float *blend; +%clear unsigned int* uvindex; +%clear aiTextureMapping* mapping; + + %apply int &OUTPUT { int &pOut }; %apply float &OUTPUT { float &pOut };