From 9d2eacfdb2dcf22261bc68771772189ac565a7b8 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 2 Mar 2010 14:49:35 +0000 Subject: [PATCH] Fix call to assimp.aiReleaseImport(), scene pointer was passed in incorrectly git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@565 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- port/PyAssimp/pyassimp/pyassimp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port/PyAssimp/pyassimp/pyassimp.py b/port/PyAssimp/pyassimp/pyassimp.py index d86d2a6db..867df9248 100644 --- a/port/PyAssimp/pyassimp/pyassimp.py +++ b/port/PyAssimp/pyassimp/pyassimp.py @@ -194,7 +194,8 @@ def load(filename, processing=0): return model.contents._init() def release(scene): - _assimp_lib.release(scene) + from ctypes import pointer + _assimp_lib.release(pointer(scene)) def aiGetMaterialFloatArray(material, key): AI_SUCCESS = 0