From 8aa0a4a9c9797a9126dd18d0eadaf398c431aa87 Mon Sep 17 00:00:00 2001 From: dhewg Date: Wed, 18 Jul 2012 19:43:09 +0200 Subject: [PATCH] Fix "black box" effect on ase meshes In 09ea2ca8 we fixed a memset(), but it turns out wiping memory at that position is wrong in the first place: If an ase mesh has a GEOMOBJECT/NODE_TM transform matrix before the GEOMOBJECT/MESH entry, the prior parsed TM will be wiped. Since a GEOMOBJECT aseObject_t is already calling memset() upon initialisation, we can just drop the spurios call. Fixes #13. --- neo/renderer/Model_ase.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/neo/renderer/Model_ase.cpp b/neo/renderer/Model_ase.cpp index ac74dea2..140cfd1b 100644 --- a/neo/renderer/Model_ase.cpp +++ b/neo/renderer/Model_ase.cpp @@ -729,8 +729,6 @@ static void ASE_KeyGEOMOBJECT( const char *token ) else if ( !strcmp( token, "*MESH" ) ) { ase.currentMesh = &ase.currentObject->mesh; - memset( ase.currentMesh, 0, sizeof( aseMesh_t ) ); - ASE_ParseBracedBlock( ASE_KeyMESH ); } // according to spec these are obsolete