So it now does not break existing content. Found a second place in the FBXReader.cpp where the RelativeFileName stripped out the dir location.
Showing the changes to interface/src/ModelPackager.cpp (1 of 6 files). Show all
Unified · Split
| @@ -106,7 +106,7 @@ bool ModelPackager::loadModel() { · 105 unmodified lines | |||
| 106 | } | 106 | } |
| 107 | qCDebug(interfaceapp) << "Reading FBX file : " << _fbxInfo.filePath(); | 107 | qCDebug(interfaceapp) << "Reading FBX file : " << _fbxInfo.filePath(); |
| 108 | QByteArray fbxContents = fbx.readAll(); | 108 | QByteArray fbxContents = fbx.readAll(); |
| 109 | _geometry = readFBX(fbxContents, QVariantHash()); | 109 | _geometry = readFBX(fbxContents, QVariantHash(), _fbxInfo.filePath()); |
| 110 | 110 | ||
| 111 | // make sure we have some basic mappings | 111 | // make sure we have some basic mappings |
| 112 | populateBasicMapping(_mapping, _fbxInfo.filePath(), _geometry); | 112 | populateBasicMapping(_mapping, _fbxInfo.filePath(), _geometry); |