mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-31 13:40:38 +00:00
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:
parent
a96635219c
commit
8aa0a4a9c9
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue