* 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
3.0
Sha..om 13 years ago
parent 68551c8c17
commit 2f2c44d6b1
  1. 2
      engine/src/core/com/jme3/util/TangentBinormalGenerator.java

@ -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…
Cancel
Save