mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 12:37:45 +00:00
Skip parts that don't exist in an existing model
This commit is contained in:
parent
039b6e6d30
commit
e9b02d53f1
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ void importModel(physis_MDL &existingModel, const QString &filename)
|
|||
qInfo() << "- LOD:" << lodNumber;
|
||||
qInfo() << "- Part:" << partNumber;
|
||||
|
||||
if (partNumber >= existingModel.lods[lodNumber].num_parts) {
|
||||
qInfo() << "- Skipping because of missing part...";
|
||||
continue;
|
||||
}
|
||||
|
||||
auto &mesh = model.meshes[node.mesh];
|
||||
auto &primitive = mesh.primitives[0];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue