refactor: clean upload pipeline and restore draco delivery
This commit is contained in:
+3
-3
@@ -10,7 +10,7 @@ export const ASSET_FAMILIES = [
|
||||
'ao',
|
||||
] as const
|
||||
|
||||
export type AssetFamily = typeof ASSET_FAMILIES[number]
|
||||
type AssetFamily = typeof ASSET_FAMILIES[number]
|
||||
|
||||
const ASSET_FAMILY_BY_KEY = new Map(ASSET_FAMILIES.map((family) => [family.toLowerCase(), family]))
|
||||
const FORBIDDEN_ASSET_FAMILY_ALIASES: ReadonlyMap<string, AssetFamily> = new Map([
|
||||
@@ -44,7 +44,7 @@ export function getAssetFamily(value: string): AssetFamily | undefined {
|
||||
return ASSET_FAMILY_BY_KEY.get(value.toLowerCase())
|
||||
}
|
||||
|
||||
export function getForbiddenAssetFamilyAlias(value: string): AssetFamily | undefined {
|
||||
function getForbiddenAssetFamilyAlias(value: string): AssetFamily | undefined {
|
||||
return FORBIDDEN_ASSET_FAMILY_ALIASES.get(value.toLowerCase())
|
||||
}
|
||||
|
||||
@@ -143,6 +143,6 @@ export function getTextureNamingError(filename: string) {
|
||||
return `Asset inconnu : ${filename}. Familles autorisees : ${formatAssetFamilies()}. Utilisez asset.png pour tout le modele ou asset_objet.png pour cibler un objet.`
|
||||
}
|
||||
|
||||
export function formatAssetFamilies() {
|
||||
function formatAssetFamilies() {
|
||||
return ASSET_FAMILIES.join(', ')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user