mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-24 04:57:45 +00:00
Support atex files, which are just textures
This commit is contained in:
parent
24461f362a
commit
be5625c1b8
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ void MainWindow::refreshParts(QString path)
|
||||||
auto mdlWidget = new MDLPart(data, fileCache);
|
auto mdlWidget = new MDLPart(data, fileCache);
|
||||||
mdlWidget->addModel(physis_mdl_parse(file), QStringLiteral("mdl"), {}, 0);
|
mdlWidget->addModel(physis_mdl_parse(file), QStringLiteral("mdl"), {}, 0);
|
||||||
partHolder->addTab(mdlWidget, QStringLiteral("Model"));
|
partHolder->addTab(mdlWidget, QStringLiteral("Model"));
|
||||||
} else if (info.completeSuffix() == QStringLiteral("tex")) {
|
} else if (info.completeSuffix() == QStringLiteral("tex") || info.completeSuffix() == QStringLiteral("atex")) {
|
||||||
auto texWidget = new TexPart(data);
|
auto texWidget = new TexPart(data);
|
||||||
texWidget->load(file);
|
texWidget->load(file);
|
||||||
partHolder->addTab(texWidget, QStringLiteral("Texture"));
|
partHolder->addTab(texWidget, QStringLiteral("Texture"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue