mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +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
|
||||
|
||||
// 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;
|
||||
|
||||
if (BAKEABLE_MODEL_EXTENSIONS.contains(assetPathExtension)) {
|
||||
|
@ -286,7 +286,7 @@ void AssetServer::handleGetMappingOperation(ReceivedMessage& message, SharedNode
|
|||
} else if (QImageReader::supportedImageFormats().contains(assetPathExtension.toLocal8Bit())) {
|
||||
bakedRootFile = BAKED_TEXTURE_SIMPLE_NAME;
|
||||
}
|
||||
|
||||
|
||||
auto originalAssetHash = it->toString();
|
||||
QString redirectedAssetHash;
|
||||
QString bakedAssetPath;
|
||||
|
|
Loading…
Reference in a new issue