From 95d5fdf9c5b45f1bbd4d52e8e2a17f21ad03faa5 Mon Sep 17 00:00:00 2001 From: Nehon Date: Sat, 11 Jul 2015 21:15:42 +0200 Subject: [PATCH] Fixed issue https://github.com/jMonkeyEngine/jmonkeyengine/issues/252 This was due to a bug in the code where triangle data were stored after calculation. --- .../main/java/com/jme3/util/TangentBinormalGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java b/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java index 0f9aac1fc..5e85378ff 100644 --- a/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java +++ b/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java @@ -612,9 +612,9 @@ public class TangentBinormalGenerator { normal.normalizeLocal(); return new TriangleData( - tangent, - binormal, - normal); + tangent.clone(), + binormal.clone(), + normal.clone()); } finally { tmp.release(); }