moved code to set _textureContent to ModelBaker class

This commit is contained in:
utkarshgautamnyu 2017-10-25 16:27:09 -07:00
parent d7f2e21dca
commit 8d3f11a990
2 changed files with 1 additions and 7 deletions

View file

@ -356,12 +356,6 @@ void FBXBaker::rewriteAndBakeSceneTextures() {
if (textureChild.name == "RelativeFilename") {
QString fbxTextureFileName { textureChild.properties.at(0).toByteArray() };
QFileInfo fbxTextureFileInfo { fbxTextureFileName.replace("\\", "/") };
QByteArray textureContent = "";
if (!fbxTextureFileInfo.filePath().isEmpty()) {
textureContent = _textureContent.value(fbxTextureFileName.toLocal8Bit());
}
// Callback to get texture type
getTextureTypeCallback textureTypeCallback = [=]() {

View file

@ -216,7 +216,7 @@ bool ModelBaker::compressMesh(FBXMesh& mesh, bool hasDeformers,FBXNode& dracoMes
QByteArray* ModelBaker::compressTexture(QString modelTextureFileName, getTextureTypeCallback textureTypeCallback) {
static QByteArray textureChild;
QByteArray textureContent;
QByteArray textureContent = "";
image::TextureUsage::Type textureType;
if (textureTypeCallback) {