mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 08:03:45 +00:00
Update Assimp from 5.2.3 to 5.2.5
This commit is contained in:
parent
ea7ca63301
commit
16f3710058
379 changed files with 14469 additions and 47175 deletions
|
|
@ -88,9 +88,7 @@ IRRImporter::IRRImporter() :
|
|||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Destructor, private as well
|
||||
IRRImporter::~IRRImporter() {
|
||||
// empty
|
||||
}
|
||||
IRRImporter::~IRRImporter() = default;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Returns whether the class can handle the format of the given file.
|
||||
|
|
@ -628,7 +626,7 @@ void IRRImporter::GenerateGraph(Node *root, aiNode *rootOut, aiScene *scene,
|
|||
ASSIMP_LOG_ERROR("IRR: Unable to load external file: ", root->meshPath);
|
||||
break;
|
||||
}
|
||||
attach.push_back(AttachmentInfo(localScene, rootOut));
|
||||
attach.emplace_back(localScene, rootOut);
|
||||
|
||||
// Now combine the material we've loaded for this mesh
|
||||
// with the real materials we got from the file. As we
|
||||
|
|
@ -874,7 +872,7 @@ void IRRImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
|||
|
||||
// Batch loader used to load external models
|
||||
BatchLoader batch(pIOHandler);
|
||||
// batch.SetBasePath(pFile);
|
||||
//batch.SetBasePath(pFile);
|
||||
|
||||
cameras.reserve(5);
|
||||
lights.reserve(5);
|
||||
|
|
@ -979,7 +977,7 @@ void IRRImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
|||
// Materials can occur for nearly any type of node
|
||||
if (inMaterials && curNode->type != Node::DUMMY) {
|
||||
// This is a material description - parse it!
|
||||
curNode->materials.push_back(std::pair<aiMaterial *, unsigned int>());
|
||||
curNode->materials.emplace_back();
|
||||
std::pair<aiMaterial *, unsigned int> &p = curNode->materials.back();
|
||||
|
||||
p.first = ParseMaterial(p.second);
|
||||
|
|
@ -988,7 +986,7 @@ void IRRImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
|||
} else if (inAnimator) {
|
||||
// This is an animation path - add a new animator
|
||||
// to the list.
|
||||
curNode->animators.push_back(Animator());
|
||||
curNode->animators.emplace_back();
|
||||
curAnim = &curNode->animators.back();
|
||||
|
||||
++guessedAnimCnt;
|
||||
|
|
@ -1015,7 +1013,7 @@ void IRRImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
|||
// here N is the ONE-based index of the point
|
||||
if (prop.name.length() >= 6 && prop.name.substr(0, 5) == "Point") {
|
||||
// Add a new key to the list
|
||||
curAnim->splineKeys.push_back(aiVectorKey());
|
||||
curAnim->splineKeys.emplace_back();
|
||||
aiVectorKey &key = curAnim->splineKeys.back();
|
||||
|
||||
// and parse its properties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue