parent
35a044bda3
commit
f170c84226
|
@ -3208,7 +3208,7 @@ namespace Assimp {
|
||||||
out->mMetaData->Set(5, "CoordAxisSign", doc.GlobalSettings().CoordAxisSign());
|
out->mMetaData->Set(5, "CoordAxisSign", doc.GlobalSettings().CoordAxisSign());
|
||||||
out->mMetaData->Set(6, "OriginalUpAxis", doc.GlobalSettings().OriginalUpAxis());
|
out->mMetaData->Set(6, "OriginalUpAxis", doc.GlobalSettings().OriginalUpAxis());
|
||||||
out->mMetaData->Set(7, "OriginalUpAxisSign", doc.GlobalSettings().OriginalUpAxisSign());
|
out->mMetaData->Set(7, "OriginalUpAxisSign", doc.GlobalSettings().OriginalUpAxisSign());
|
||||||
out->mMetaData->Set(8, "UnitScaleFactor", doc.GlobalSettings().UnitScaleFactor());
|
out->mMetaData->Set(8, "UnitScaleFactor", (double)doc.GlobalSettings().UnitScaleFactor());
|
||||||
out->mMetaData->Set(9, "OriginalUnitScaleFactor", doc.GlobalSettings().OriginalUnitScaleFactor());
|
out->mMetaData->Set(9, "OriginalUnitScaleFactor", doc.GlobalSettings().OriginalUnitScaleFactor());
|
||||||
out->mMetaData->Set(10, "AmbientColor", doc.GlobalSettings().AmbientColor());
|
out->mMetaData->Set(10, "AmbientColor", doc.GlobalSettings().AmbientColor());
|
||||||
out->mMetaData->Set(11, "FrameRate", (int)doc.GlobalSettings().TimeMode());
|
out->mMetaData->Set(11, "FrameRate", (int)doc.GlobalSettings().TimeMode());
|
||||||
|
|
|
@ -221,7 +221,7 @@ void IFCImporter::InternReadFile( const std::string& pFile, aiScene* pScene, IOS
|
||||||
free(buffer);
|
free(buffer);
|
||||||
} while (read > 0);
|
} while (read > 0);
|
||||||
size_t filesize = fileInfo.uncompressed_size;
|
size_t filesize = fileInfo.uncompressed_size;
|
||||||
if (total < 0 || size_t(total) != filesize)
|
if (total == 0 || size_t(total) != filesize)
|
||||||
{
|
{
|
||||||
delete[] buff;
|
delete[] buff;
|
||||||
ThrowException("Failed to decompress IFC ZIP file");
|
ThrowException("Failed to decompress IFC ZIP file");
|
||||||
|
|
Loading…
Reference in New Issue