mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-12 00:13:58 +00:00
update assimp to 6.0.5
This commit is contained in:
parent
2d2eb57e2e
commit
f5cf21cfeb
941 changed files with 22718 additions and 12240 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2024, assimp team
|
||||
Copyright (c) 2006-2026, assimp team
|
||||
|
||||
All rights reserved.
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#ifndef ASSIMP_BUILD_NO_HMP_IMPORTER
|
||||
|
||||
// internal headers
|
||||
#include "AssetLib/HMP/HMPLoader.h"
|
||||
#include "HMPLoader.h"
|
||||
#include "AssetLib/MD2/MD2FileData.h"
|
||||
|
||||
#include <assimp/StringUtils.h>
|
||||
|
|
@ -81,7 +81,7 @@ HMPImporter::~HMPImporter() = default;
|
|||
// ------------------------------------------------------------------------------------------------
|
||||
// Returns whether the class can handle the format of the given file.
|
||||
bool HMPImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const {
|
||||
static const uint32_t tokens[] = {
|
||||
static constexpr uint32_t tokens[] = {
|
||||
AI_HMP_MAGIC_NUMBER_LE_4,
|
||||
AI_HMP_MAGIC_NUMBER_LE_5,
|
||||
AI_HMP_MAGIC_NUMBER_LE_7
|
||||
|
|
@ -163,8 +163,14 @@ void HMPImporter::ValidateHeader_HMP457() {
|
|||
"120 bytes, this file is smaller)");
|
||||
}
|
||||
|
||||
if (!std::isfinite(pcHeader->ftrisize_x) || !std::isfinite(pcHeader->ftrisize_y))
|
||||
throw DeadlyImportError("Size of triangles in either x or y direction is not finite");
|
||||
|
||||
if (!pcHeader->ftrisize_x || !pcHeader->ftrisize_y)
|
||||
throw DeadlyImportError("Size of triangles in either x or y direction is zero");
|
||||
throw DeadlyImportError("Size of triangles in either x or y direction is zero");
|
||||
|
||||
if (!std::isfinite(pcHeader->fnumverts_x))
|
||||
throw DeadlyImportError("Number of triangles in x direction is not finite");
|
||||
|
||||
if (pcHeader->fnumverts_x < 1.0f || (pcHeader->numverts / pcHeader->fnumverts_x) < 1.0f)
|
||||
throw DeadlyImportError("Number of triangles in either x or y direction is zero");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue