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: