mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:57:00 +02:00
fix extension check for get mapping redirect
This commit is contained in:
parent
db3524a48f
commit
03e952ec38
1 changed files with 2 additions and 2 deletions
|
@ -278,7 +278,7 @@ void AssetServer::handleGetMappingOperation(ReceivedMessage& message, SharedNode
|
||||||
// check if we should re-direct to a baked asset
|
// check if we should re-direct to a baked asset
|
||||||
|
|
||||||
// first, figure out from the mapping extension what type of file this is
|
// first, figure out from the mapping extension what type of file this is
|
||||||
auto assetPathExtension = assetPath.right(assetPath.lastIndexOf('.')).toLower();
|
auto assetPathExtension = assetPath.mid(assetPath.lastIndexOf('.')).toLower();
|
||||||
QString bakedRootFile;
|
QString bakedRootFile;
|
||||||
|
|
||||||
if (BAKEABLE_MODEL_EXTENSIONS.contains(assetPathExtension)) {
|
if (BAKEABLE_MODEL_EXTENSIONS.contains(assetPathExtension)) {
|
||||||
|
@ -286,7 +286,7 @@ void AssetServer::handleGetMappingOperation(ReceivedMessage& message, SharedNode
|
||||||
} else if (QImageReader::supportedImageFormats().contains(assetPathExtension.toLocal8Bit())) {
|
} else if (QImageReader::supportedImageFormats().contains(assetPathExtension.toLocal8Bit())) {
|
||||||
bakedRootFile = BAKED_TEXTURE_SIMPLE_NAME;
|
bakedRootFile = BAKED_TEXTURE_SIMPLE_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto originalAssetHash = it->toString();
|
auto originalAssetHash = it->toString();
|
||||||
QString redirectedAssetHash;
|
QString redirectedAssetHash;
|
||||||
QString bakedAssetPath;
|
QString bakedAssetPath;
|
||||||
|
|
Loading…
Reference in a new issue