Skip to content

Commit

Permalink
Add another particle layout case I've seen
Browse files Browse the repository at this point in the history
The triangulation seems to have been reversed on this fbx; unclear
whether some other tool broke the fbx, but it's easy enough to support.

Change-Id: Id000b015155f569cb16a4d9cbbf78d2432bfab3d
  • Loading branch information
dubois committed Jul 9, 2019
1 parent 5f30951 commit 8f16ee4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UnitySDK/Assets/TiltBrush/Scripts/Editor/ParticleMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ internal QuadType ClassifyQuad(int iiVert, WarningCallback callback) {
m_triangles[i+2] == v+2 &&
m_triangles[i+3] == v+0 &&
m_triangles[i+4] == v+2 &&
m_triangles[i+5] == v+3) ||
(m_triangles[i ] == v &&
m_triangles[i+1] == v+3 &&
m_triangles[i+2] == v+1 &&
m_triangles[i+3] == v+0 &&
m_triangles[i+4] == v+2 &&
m_triangles[i+5] == v+3)) {
if (m_lastMod == null || (v % 4) != m_lastMod.Value) {
// if (m_lastMod != null) {
Expand Down

0 comments on commit 8f16ee4

Please sign in to comment.