propagating precision requirments into operations
This commit is contained in:
@@ -965,7 +965,7 @@ void NFFImporter::InternReadFile( const std::string& pFile,
|
||||
// compute the center point of the cone/cylinder -
|
||||
// it is its local transformation origin
|
||||
currentMesh.dir = center2-center1;
|
||||
currentMesh.center = center1+currentMesh.dir/2.f;
|
||||
currentMesh.center = center1+currentMesh.dir/(ai_real)2.0;
|
||||
|
||||
float f;
|
||||
if (( f = currentMesh.dir.Length()) < 10e-3f )
|
||||
@@ -1159,7 +1159,7 @@ void NFFImporter::InternReadFile( const std::string& pFile,
|
||||
++ppcChildren;
|
||||
} else {
|
||||
*pMeshes++ = m;
|
||||
}
|
||||
}
|
||||
|
||||
// copy vertex positions
|
||||
mesh->mVertices = new aiVector3D[mesh->mNumVertices];
|
||||
|
||||
Reference in New Issue
Block a user