From e6516329b917f7c27c0794fd21644bb451d92be9 Mon Sep 17 00:00:00 2001 From: klickverbot Date: Fri, 9 Jul 2010 18:00:34 +0000 Subject: [PATCH] SWIG: Even more output parameter handling. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@776 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- port/swig/interface/aiMaterial.i | 2 ++ port/swig/interface/assimp.i | 4 ++++ 2 files changed, 6 insertions(+) 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;