mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 10:47:53 +02:00
Restore some very odd modularity used by VHACDUtil.
This commit is contained in:
parent
810242e182
commit
242001a589
2 changed files with 5 additions and 1 deletions
|
@ -56,3 +56,7 @@ public:
|
|||
void fbxDebugDump(const FBXGeometry& fbxgeo);
|
||||
bool parseOBJGroup(OBJTokenizer& tokenizer, const QVariantHash& mapping, FBXGeometry& geometry, float& scaleGuess);
|
||||
};
|
||||
|
||||
// What are these utilities doing here? Apparently used by fbx loading code in VHACD Utils.
|
||||
void setMeshPartDefaults(FBXMeshPart &meshPart, QString materialID);
|
||||
void fbxDebugDump(const FBXGeometry& fbxgeo);
|
|
@ -36,7 +36,7 @@ bool vhacd::VHACDUtil::loadFBX(const QString filename, FBXGeometry& result) {
|
|||
QByteArray fbxContents = fbx.readAll();
|
||||
|
||||
if (filename.toLower().endsWith(".obj")) {
|
||||
result = readOBJ(fbxContents, QVariantHash());
|
||||
result = OBJReader().readOBJ(fbxContents, QVariantHash());
|
||||
} else if (filename.toLower().endsWith(".fbx")) {
|
||||
result = readFBX(fbxContents, QVariantHash());
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue