* TangentBinormalGenerator will replace the tangent buffer if it already exists on the mesh, instead of crashing
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9445 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
68551c8c17
commit
2f2c44d6b1
@ -611,6 +611,8 @@ public class TangentBinormalGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
// If the model already had a tangent buffer, replace it with the regenerated one
|
||||
mesh.clearBuffer(Type.Tangent);
|
||||
mesh.setBuffer(Type.Tangent, 4, tangents);
|
||||
// if (!approxTangent) mesh.setBuffer(Type.Binormal, 3, binormals);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user