mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 12:37:45 +00:00
Nessecary API changes to gearview
This commit is contained in:
parent
d9da02cdeb
commit
d882d85eef
2 changed files with 9 additions and 1 deletions
|
@ -43,8 +43,11 @@ public:
|
||||||
|
|
||||||
void exportModel(const QString& fileName);
|
void exportModel(const QString& fileName);
|
||||||
|
|
||||||
|
MDLPart& part() const;
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void gearChanged();
|
void gearChanged();
|
||||||
|
void modelReloaded();
|
||||||
|
|
||||||
void raceChanged();
|
void raceChanged();
|
||||||
void genderChanged();
|
void genderChanged();
|
||||||
|
@ -58,7 +61,6 @@ public Q_SLOTS:
|
||||||
void setGender(Gender gender);
|
void setGender(Gender gender);
|
||||||
void setLevelOfDetail(int lod);
|
void setLevelOfDetail(int lod);
|
||||||
|
|
||||||
private Q_SLOTS:
|
|
||||||
void reloadModel();
|
void reloadModel();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -139,6 +139,12 @@ void GearView::reloadModel() {
|
||||||
mdlPart->addModel(mdl, materials, currentLod);
|
mdlPart->addModel(mdl, materials, currentLod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Q_EMIT modelReloaded();
|
||||||
|
}
|
||||||
|
|
||||||
|
MDLPart &GearView::part() const {
|
||||||
|
return *mdlPart;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "moc_gearview.cpp"
|
#include "moc_gearview.cpp"
|
||||||
|
|
Loading…
Add table
Reference in a new issue