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.
This commit is contained in:
dhewg 2012-07-18 19:43:09 +02:00
parent a96635219c
commit 8aa0a4a9c9

View file

@ -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