修复标准切片校验被兜底绕过
禁止 manifest 兜底重新接纳标准图集切片路径 保留自定义路径素材的扫描能力
This commit is contained in:
@@ -2349,6 +2349,13 @@ fn direct_game_sources_referenced_taonier_assets(root: &Path) -> Vec<String> {
|
||||
) && asset.media_type == "image/png"
|
||||
&& asset.source.kind == GameCreationAppAssetSourceKind::Canvas
|
||||
&& asset.local_path.starts_with("assets/")
|
||||
// Canonical slices are admitted above only after the
|
||||
// full slice manifest/receipt/content validation. Do
|
||||
// not let this generic manifest fallback bypass it.
|
||||
&& !(asset.kind == "art-spritesheet-slice"
|
||||
&& asset
|
||||
.local_path
|
||||
.starts_with("assets/art-spritesheet-slices/"))
|
||||
})
|
||||
.map(|asset| asset.local_path),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user