mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
even more precice filtering for dts vs dsq
This commit is contained in:
parent
411318c4d4
commit
b69c0d2a0f
2 changed files with 16 additions and 2 deletions
|
|
@ -968,7 +968,14 @@ TSShape* assimpLoadShape(const Torque::Path &path)
|
||||||
TSShapeLoader::updateProgress(TSShapeLoader::Load_Complete, "Import complete");
|
TSShapeLoader::updateProgress(TSShapeLoader::Load_Complete, "Import complete");
|
||||||
Con::printf("[ASSIMP] Shape created successfully.");
|
Con::printf("[ASSIMP] Shape created successfully.");
|
||||||
|
|
||||||
if (tss->meshes.empty())
|
bool realMesh = false;
|
||||||
|
for (U32 i = 0; i < tss->meshes.size(); ++i)
|
||||||
|
{
|
||||||
|
if (tss->meshes[i] && tss->meshes[i]->getMeshType() != TSMesh::NullMeshType)
|
||||||
|
realMesh = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!realMesh)
|
||||||
{
|
{
|
||||||
Torque::Path dsqPath(cachedPath);
|
Torque::Path dsqPath(cachedPath);
|
||||||
dsqPath.setExtension("dsq");
|
dsqPath.setExtension("dsq");
|
||||||
|
|
|
||||||
|
|
@ -725,7 +725,14 @@ TSShape* loadColladaShape(const Torque::Path &path)
|
||||||
{
|
{
|
||||||
#ifndef DAE2DTS_TOOL
|
#ifndef DAE2DTS_TOOL
|
||||||
|
|
||||||
if (tss->meshes.empty())
|
bool realMesh = false;
|
||||||
|
for (U32 i = 0; i < tss->meshes.size(); ++i)
|
||||||
|
{
|
||||||
|
if (tss->meshes[i] && tss->meshes[i]->getMeshType() != TSMesh::NullMeshType)
|
||||||
|
realMesh = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!realMesh)
|
||||||
{
|
{
|
||||||
Torque::Path dsqPath(cachedPath);
|
Torque::Path dsqPath(cachedPath);
|
||||||
dsqPath.setExtension("dsq");
|
dsqPath.setExtension("dsq");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue