mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Correct weight count display for no weights.
This was causing it to always say unknown weights since the +1 on weightCount.
This commit is contained in:
1 parent
010a7ac1af
commit
ec79dacc35
1 file changed
+1
-1
+1
-1
@@ -68,7 +68,7 @@ void GeDescribeVertexType(u32 op, char *buffer, int len) {
|
||||
w += snprintf(w, end - w, "%s positions, ", typeNamesS[pos]);
|
||||
if (typeNames[weight] && w < end)
|
||||
w += snprintf(w, end - w, "%s weights (%d), ", typeNames[weight], weightCount);
|
||||
else if (weightCount > 0 && w < end)
|
||||
else if (weightCount > 1 && w < end)
|
||||
w += snprintf(w, end - w, "unknown weights (%d), ", weightCount);
|
||||
if (morphCount > 0 && w < end)
|
||||
w += snprintf(w, end - w, "%d morphs, ", morphCount);
|
||||
|
||||
Reference in new issue
Block a user