1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 16:44:50 +02:00

fix passport animation

This commit is contained in:
XProger
2018-11-24 07:08:29 +03:00
parent 2a54d10fc7
commit ce4418941d

View File

@@ -1258,7 +1258,7 @@ struct Inventory {
int itemIndex = index == targetIndex ? getGlobalIndex(page, index) : -1;
for (int i = 0; i < itemsCount; i++) {
items[i]->update(chosen, phaseChoose);
items[i]->update(chosen && itemIndex == i, phaseChoose);
float &angle = items[i]->angle;
if (itemIndex != i || chosen) {