From 4b6c69c4f8859db108dc40b10840b06b5af62f7b Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Sat, 19 Nov 2016 03:17:39 +1100 Subject: [PATCH] Fixed an incorrect cast introduced in an earlier commit. --- code/BlenderLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/BlenderLoader.cpp b/code/BlenderLoader.cpp index 713146e..bf6acf9 100644 --- a/code/BlenderLoader.cpp +++ b/code/BlenderLoader.cpp @@ -59,6 +59,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "StreamReader.h" #include "MemoryIOWrapper.h" #include +#include // zlib is needed for compressed blend files @@ -421,7 +422,7 @@ void BlenderImporter::ResolveImage(aiMaterial* out, const Material* mat, const M // check if the file contents are bundled with the BLEND file if (img->packedfile) { name.data[0] = '*'; - name.length = 1+ ASSIMP_itoa10(name.data+1,static_cast(MAXLEN-1), static_cast(conv_data.textures->size())); + name.length = 1+ ASSIMP_itoa10(name.data+1,static_cast(MAXLEN-1), static_cast(conv_data.textures->size())); conv_data.textures->push_back(new aiTexture()); aiTexture* tex = conv_data.textures->back(); -- 2.7.4