mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 13:17:46 +00:00
Update libphysis and adapt to API changes
This commit is contained in:
parent
df91612829
commit
8b34cd08fe
4 changed files with 8 additions and 8 deletions
|
@ -313,7 +313,7 @@ void GearView::updatePart()
|
|||
}
|
||||
|
||||
if (mdl_data.size > 0) {
|
||||
auto mdl = physis_mdl_parse(mdl_data.size, mdl_data.data);
|
||||
auto mdl = physis_mdl_parse(mdl_data);
|
||||
|
||||
std::vector<physis_Material> materials;
|
||||
for (int i = 0; i < mdl.num_material_names; i++) {
|
||||
|
@ -365,7 +365,7 @@ void GearView::updatePart()
|
|||
auto mdl_data = cache.lookupFile(mdlPath);
|
||||
|
||||
if (mdl_data.size > 0) {
|
||||
auto mdl = physis_mdl_parse(mdl_data.size, mdl_data.data);
|
||||
auto mdl = physis_mdl_parse(mdl_data);
|
||||
|
||||
std::vector<physis_Material> materials;
|
||||
for (int i = 0; i < mdl.num_material_names; i++) {
|
||||
|
@ -388,7 +388,7 @@ void GearView::updatePart()
|
|||
auto mdl_data = cache.lookupFile(mdlPath);
|
||||
|
||||
if (mdl_data.size > 0) {
|
||||
auto mdl = physis_mdl_parse(mdl_data.size, mdl_data.data);
|
||||
auto mdl = physis_mdl_parse(mdl_data);
|
||||
|
||||
std::vector<physis_Material> materials;
|
||||
for (int i = 0; i < mdl.num_material_names; i++) {
|
||||
|
@ -411,7 +411,7 @@ void GearView::updatePart()
|
|||
auto mdl_data = cache.lookupFile(mdlPath);
|
||||
|
||||
if (mdl_data.size > 0) {
|
||||
auto mdl = physis_mdl_parse(mdl_data.size, mdl_data.data);
|
||||
auto mdl = physis_mdl_parse(mdl_data);
|
||||
|
||||
std::vector<physis_Material> materials;
|
||||
for (int i = 0; i < mdl.num_material_names; i++) {
|
||||
|
@ -434,7 +434,7 @@ void GearView::updatePart()
|
|||
auto mdl_data = cache.lookupFile(mdlPath);
|
||||
|
||||
if (mdl_data.size > 0) {
|
||||
auto mdl = physis_mdl_parse(mdl_data.size, mdl_data.data);
|
||||
auto mdl = physis_mdl_parse(mdl_data);
|
||||
|
||||
const char *material_name = mdl.material_names[0];
|
||||
const std::string skinmtrl_path =
|
||||
|
|
2
extern/libphysis
vendored
2
extern/libphysis
vendored
|
@ -1 +1 @@
|
|||
Subproject commit c6f904c8c65b65b0bc2565b7b38991f4e7eaf737
|
||||
Subproject commit 14fa0367302aa2b3ef9a8adba5cbe61f81a1f672
|
|
@ -48,7 +48,7 @@ void MainWindow::setupFileMenu(QMenu *menu)
|
|||
|
||||
auto buffer = physis_read_file(fileName.toStdString().c_str());
|
||||
|
||||
part->addModel(physis_mdl_parse(buffer.size, buffer.data), QStringLiteral("mdl"), {}, 0);
|
||||
part->addModel(physis_mdl_parse(buffer), QStringLiteral("mdl"), {}, 0);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ void MainWindow::refreshParts(QString path)
|
|||
partHolder->addTab(exdWidget, QStringLiteral("Note"));
|
||||
} else if (info.completeSuffix() == QStringLiteral("mdl")) {
|
||||
auto mdlWidget = new MDLPart(data, fileCache);
|
||||
mdlWidget->addModel(physis_mdl_parse(file.size, file.data), QStringLiteral("mdl"), {}, 0);
|
||||
mdlWidget->addModel(physis_mdl_parse(file), QStringLiteral("mdl"), {}, 0);
|
||||
partHolder->addTab(mdlWidget, QStringLiteral("Model"));
|
||||
} else if (info.completeSuffix() == QStringLiteral("tex")) {
|
||||
auto texWidget = new TexPart(data);
|
||||
|
|
Loading…
Add table
Reference in a new issue