LWO
- added workaround for LWOB's with ill-formed SURF chunks - layer hierarchy is now correct - fixed & simplified transparency handling FindDegenerates - fixed seldom crashes with RemoveDegenerates=1. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@369 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -142,13 +142,6 @@ void FindDegeneratesProcess::ExecuteOnMesh( aiMesh* mesh)
|
||||
}
|
||||
|
||||
// We need to update the primitive flags array of the mesh.
|
||||
// Unfortunately it is not possible to execute
|
||||
// FindDegenerates before DeterminePType. The latter does
|
||||
// nothing if the primitive flags have already been set by
|
||||
// the loader - our changes would be ignored. Although
|
||||
// we could use some tricks regarding - i.e setting
|
||||
// mPrimitiveTypes to 0 in every case - but this is the cleanest
|
||||
// way and causes no additional dependencies in the pipeline.
|
||||
switch (face.mNumIndices)
|
||||
{
|
||||
case 1u:
|
||||
@@ -181,9 +174,11 @@ evil_jump_outside:
|
||||
face_dest.mNumIndices = face_src.mNumIndices;
|
||||
face_dest.mIndices = face_src.mIndices;
|
||||
|
||||
// clear source
|
||||
face_src.mNumIndices = 0;
|
||||
face_src.mIndices = NULL;
|
||||
if (&face_src != &face_dest) {
|
||||
// clear source
|
||||
face_src.mNumIndices = 0;
|
||||
face_src.mIndices = NULL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Otherwise delete it if we don't need this face
|
||||
|
||||
Reference in New Issue
Block a user