fix uuninitialized value in stroke mesh builder

master
CarlOlson 2022-08-28 15:16:00 +09:00 committed by Jeremy HU
parent 9904f0e74d
commit 2be6c741d9
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ void StrokeMeshBuilder::localAverageBaseNormals()
size_t h, j; size_t h, j;
if (m_isRing) { if (m_isRing) {
h = (i + m_nodeIndices.size() - 1) % m_nodeIndices.size(); h = (i + m_nodeIndices.size() - 1) % m_nodeIndices.size();
j = (j + 1) % m_nodeIndices.size(); j = (i + 1) % m_nodeIndices.size();
} else { } else {
h = i > 0 ? i - 1 : i; h = i > 0 ? i - 1 : i;
j = i + 1 < m_nodeIndices.size() ? i + 1 : i; j = i + 1 < m_nodeIndices.size() ? i + 1 : i;