diff --git a/port/swig/interface/aiMaterial.i b/port/swig/interface/aiMaterial.i index 0d87da5a7..630e6b711 100644 --- a/port/swig/interface/aiMaterial.i +++ b/port/swig/interface/aiMaterial.i @@ -9,9 +9,11 @@ ASSIMP_ARRAY(aiMaterial, aiMaterialProperty*, mProperties, $self->mNumProperties %apply unsigned int *OUTPUT { unsigned int* uvindex }; %apply float *OUTPUT { float* blend }; %apply enum SWIGTYPE *OUTPUT { aiTextureOp* op }; +%apply unsigned int *OUTPUT { unsigned int* flags }; %include "aiMaterial.h" +%clear unsigned int* flags; %clear aiTextureOp* op; %clear float *blend; %clear unsigned int* uvindex; diff --git a/port/swig/interface/assimp.i b/port/swig/interface/assimp.i index 932726bdf..8caf13dfb 100644 --- a/port/swig/interface/assimp.i +++ b/port/swig/interface/assimp.i @@ -37,5 +37,9 @@ namespace Assimp { return ret; } +%include +%apply bool *OUTPUT { bool *bWasExisting }; %include "assimp.hpp" + +%clear bool *bWasExisting;