Commit e97ebd6
committed
fix(armory): match the client's real composite icon slot, drop guessing
RE'd the client's own composite-model loader (CICompositePlayer, used
by the character-creation dress-up doll - the actual in-game analog
of this feature): it walks every populated file_ids slot to gather ALL
of them as required texture layers for the 3D worn model. There is no
per-slot priority and no slot that means "the icon" - slot 0xa was an
unverified assumption, not real client behavior, and trying arbitrary
other slots as fallbacks risks showing the wrong image (a normal map,
a specular mask, etc.) rather than the correct one.
Resources::GetItemImage now only ever tries the given gender's model
slot (file_ids[0] male, file_ids[5] female), falling back to that same
file's own stream 0 (already handled by DecodeItemToArgb) and nothing
further. A handful of items with no icon data on that slot (e.g. Elite
Fur-Lined Boots) will show the placeholder again rather than a
guessed-at image from an unrelated slot.1 parent f19f023 commit e97ebd6
2 files changed
Lines changed: 20 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1366 | 1366 | | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1375 | 1379 | | |
1376 | 1380 | | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
1408 | 1384 | | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
| 1385 | + | |
| 1386 | + | |
1412 | 1387 | | |
1413 | 1388 | | |
1414 | 1389 | | |
| |||
0 commit comments