fix: validate texture asset names server-side
This commit is contained in:
@@ -58,13 +58,15 @@ export function buildCommitMessage(
|
||||
|
||||
const sectionTitles: Record<AssetCategory, string> = {
|
||||
color: '🎨 Textures (color)',
|
||||
diffuse: '🖌 Textures (diffuse)',
|
||||
roughness: '🪶 Textures (roughness)',
|
||||
normal: '🧭 Textures (normal)',
|
||||
metalness: '🔩 Textures (metalness)',
|
||||
opacity: '🪟 Textures (opacity)',
|
||||
assets: '🧩 Assets',
|
||||
}
|
||||
|
||||
for (const category of ['color', 'roughness', 'normal', 'metalness', 'assets'] as const) {
|
||||
for (const category of ['color', 'diffuse', 'roughness', 'normal', 'metalness', 'opacity', 'assets'] as const) {
|
||||
const entries = grouped.get(category)
|
||||
if (!entries || entries.length === 0) continue
|
||||
lines.push('')
|
||||
|
||||
Reference in New Issue
Block a user