Merge branch 'main' of git.chengdu.pundit.company:castbox/gitea_ap_art_assets

main
jackyan 2023-11-08 17:18:46 +08:00
commit 92adb66d9b
3 changed files with 7 additions and 2 deletions

View File

@ -31,6 +31,7 @@ def parse_psd(path):
has_base = False has_base = False
has_finish = False has_finish = False
has_thumbnail = False
lines = {} lines = {}
patch_stages = {} patch_stages = {}
bad_stages = {} bad_stages = {}
@ -112,7 +113,8 @@ def parse_psd(path):
auto_stages[nArr[1]].append(nArr[2]) auto_stages[nArr[1]].append(nArr[2])
elif nArr[0] == 'thumbnail' or nArr[0] == 'role' or nArr[0] == 'rptmp': elif nArr[0] == 'thumbnail' or nArr[0] == 'role' or nArr[0] == 'rptmp':
pass if nArr[0] == 'thumbnail':
has_thumbnail = True
elif is_activity_main_psd and nArr[0] == 'entry': elif is_activity_main_psd and nArr[0] == 'entry':
if len(nArr) != 3: if len(nArr) != 3:
log.append("活动子点位,命名错误:{}".format(item.name)) log.append("活动子点位,命名错误:{}".format(item.name))
@ -140,6 +142,9 @@ def parse_psd(path):
if not is_activity_main_psd and not has_finish: if not is_activity_main_psd and not has_finish:
log.append("未检测到finish图层\n") log.append("未检测到finish图层\n")
if is_activity_main_psd and not has_thumbnail:
log.append("未检测到 缩略图 图层\n")
for stage in patch_stages: for stage in patch_stages:
tmp = {} tmp = {}
for item in patch_stages[stage]: for item in patch_stages[stage]:

View File

@ -1634,7 +1634,7 @@
"9": "8763b1aaa2f9e912fafc62d8ece7936e2b6715a6", "9": "8763b1aaa2f9e912fafc62d8ece7936e2b6715a6",
"90": "2501bfb8d3b01598d3bb57a7dc54c518ca62e228", "90": "2501bfb8d3b01598d3bb57a7dc54c518ca62e228",
"900": "2539dfe26204667c84db16b49ba9cae98289e633", "900": "2539dfe26204667c84db16b49ba9cae98289e633",
"90000": "1e82dd216e505aeb518af281aa9b02756e164416", "90000": "e8f49930b0c9b7b2aef6875e58801018afa06df6",
"90001": "e8f49930b0c9b7b2aef6875e58801018afa06df6", "90001": "e8f49930b0c9b7b2aef6875e58801018afa06df6",
"901": "d17f1c1954d16b9adfae896ffb79235601c14226", "901": "d17f1c1954d16b9adfae896ffb79235601c14226",
"902": "7db0cd70ad3bfda76b59bdfa3bfd89e0c5e84294", "902": "7db0cd70ad3bfda76b59bdfa3bfd89e0c5e84294",