fix uuninitialized value in stroke mesh builder
parent
9904f0e74d
commit
2be6c741d9
|
@ -451,7 +451,7 @@ void StrokeMeshBuilder::localAverageBaseNormals()
|
|||
size_t h, j;
|
||||
if (m_isRing) {
|
||||
h = (i + m_nodeIndices.size() - 1) % m_nodeIndices.size();
|
||||
j = (j + 1) % m_nodeIndices.size();
|
||||
j = (i + 1) % m_nodeIndices.size();
|
||||
} else {
|
||||
h = i > 0 ? i - 1 : i;
|
||||
j = i + 1 < m_nodeIndices.size() ? i + 1 : i;
|
||||
|
|
Loading…
Reference in New Issue