소스 검색

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.

Nehon 10 년 전
부모
커밋
95d5fdf9c5
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java

+ 3 - 3
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();
         }