mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Move constant to central location
This commit is contained in:
parent
da2bede6fe
commit
764e5d2e4c
3 changed files with 2 additions and 3 deletions
|
@ -53,8 +53,6 @@ static QStringList BAKEABLE_TEXTURE_EXTENSIONS;
|
|||
static const QString BAKED_MODEL_SIMPLE_NAME = "asset.fbx";
|
||||
static const QString BAKED_TEXTURE_SIMPLE_NAME = "texture.ktx";
|
||||
|
||||
static const QString HIDDEN_BAKED_CONTENT_FOLDER = "/.baked/";
|
||||
|
||||
BakeAssetTask::BakeAssetTask(const AssetHash& assetHash, const AssetPath& assetPath, const QString& filePath)
|
||||
: _assetHash(assetHash), _assetPath(assetPath), _filePath(filePath) {
|
||||
}
|
||||
|
|
|
@ -203,7 +203,6 @@ void AssetMappingModel::refresh() {
|
|||
for (auto& mapping : mappings) {
|
||||
auto& path = mapping.first;
|
||||
|
||||
const QString HIDDEN_BAKED_CONTENT_FOLDER = "/.baked/";
|
||||
if (path.startsWith(HIDDEN_BAKED_CONTENT_FOLDER)) {
|
||||
// Hide baked mappings
|
||||
continue;
|
||||
|
|
|
@ -33,6 +33,8 @@ const QString ASSET_FILE_PATH_REGEX_STRING = "^(\\/[^\\/\\0]+)+$";
|
|||
const QString ASSET_PATH_REGEX_STRING = "^\\/([^\\/\\0]+(\\/)?)+$";
|
||||
const QString ASSET_HASH_REGEX_STRING = QString("^[a-fA-F0-9]{%1}$").arg(SHA256_HASH_HEX_LENGTH);
|
||||
|
||||
const QString HIDDEN_BAKED_CONTENT_FOLDER = "/.baked/";
|
||||
|
||||
enum AssetServerError : uint8_t {
|
||||
NoError = 0,
|
||||
AssetNotFound,
|
||||
|
|
Loading…
Reference in a new issue