From 3948feaaf8aa59fffae1c77f65c93a21f0919039 Mon Sep 17 00:00:00 2001 From: LJW-Dev Date: Sat, 1 Nov 2025 17:27:32 +0800 Subject: [PATCH] Assets with a name starting with ',' will now be always loaded as a default dependency. --- src/ObjLoading/Asset/AssetCreationContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ObjLoading/Asset/AssetCreationContext.cpp b/src/ObjLoading/Asset/AssetCreationContext.cpp index 7624716c..4fb6b778 100644 --- a/src/ObjLoading/Asset/AssetCreationContext.cpp +++ b/src/ObjLoading/Asset/AssetCreationContext.cpp @@ -120,6 +120,9 @@ XAssetInfoGeneric* AssetCreationContext::LoadDependencyGeneric(const asset_type_ return LoadDefaultAssetDependency(assetType, std::format(",{}", assetName)); } + if (assetName.starts_with(',')) + return LoadDefaultAssetDependency(assetType, assetName); + if (m_ignored_asset_lookup->IsAssetIgnored(assetType, assetName)) return LoadDefaultAssetDependency(assetType, std::format(",{}", assetName));