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:
Unknown W. Brackets committed 2015-11-15 15:03:14 -08:00
1 parent 010a7ac1af
commit ec79dacc35
1 file changed
+1 -1
+1 -1
View File
@@ -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);