From 549105e5367730edc991551602abf96088ee18d1 Mon Sep 17 00:00:00 2001 From: _ <_> Date: Fri, 18 May 2018 01:48:10 -0700 Subject: [PATCH] Updated example for current version of python interface --- docs/doc-python.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/doc-python.txt b/docs/doc-python.txt index 53cbe15..0c813a0 100644 --- a/docs/doc-python.txt +++ b/docs/doc-python.txt @@ -220,8 +220,7 @@ Example Logic: Extract Textures size = bd.gettexturesize() for texture in tx.gettextures(): with open(filename + str(i) + ".dds", "wb") as fw: - image = cast(texture.data, POINTER(c_ubyte * size))[0] - fw.write(image) + fw.write(texture) i += 1 Example Logic: Iterate through all MeshHeaders and Meshes: