• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Main repository of MikuMikuStudio


Commit MetaInfo

Revisiónf367e02ea985ded763495b431ac8c739f6afe8b4 (tree)
Tiempo2013-07-08 06:17:30
Autorremy.bouquet@gmail.com <remy.bouquet@gmai...>
Commiterremy.bouquet@gmail.com

Log Message

- Fixed issue introduced in last change of Mesh write method. Hardware Skinning buffers were not properly ignored at save time in some rare cases, and were causing a crash

git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10697 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

Cambiar Resumen

Diferencia incremental

--- a/engine/src/core/com/jme3/scene/Mesh.java
+++ b/engine/src/core/com/jme3/scene/Mesh.java
@@ -1329,29 +1329,25 @@ public class Mesh implements Savable, Cloneable {
13291329 //Removing HW skinning buffers to not save them
13301330 VertexBuffer hwBoneIndex = null;
13311331 VertexBuffer hwBoneWeight = null;
1332- if (isAnimated()) {
1333- hwBoneIndex = getBuffer(Type.HWBoneIndex);
1334- if (hwBoneIndex != null) {
1335- buffers.remove(Type.HWBoneIndex.ordinal());
1336- }
1337- hwBoneWeight = getBuffer(Type.HWBoneWeight);
1338- if (hwBoneWeight != null) {
1339- buffers.remove(Type.HWBoneWeight.ordinal());
1340- }
1332+ hwBoneIndex = getBuffer(Type.HWBoneIndex);
1333+ if (hwBoneIndex != null) {
1334+ buffers.remove(Type.HWBoneIndex.ordinal());
13411335 }
1342-
1336+ hwBoneWeight = getBuffer(Type.HWBoneWeight);
1337+ if (hwBoneWeight != null) {
1338+ buffers.remove(Type.HWBoneWeight.ordinal());
1339+ }
1340+
13431341 out.writeIntSavableMap(buffers, "buffers", null);
1344-
1342+
13451343 //restoring Hw skinning buffers.
1346- if (isAnimated()) {
1347- if (hwBoneIndex != null) {
1348- buffers.put(hwBoneIndex.getBufferType().ordinal(), hwBoneIndex);
1349- }
1350- if (hwBoneWeight != null) {
1351- buffers.put(hwBoneWeight.getBufferType().ordinal(), hwBoneWeight);
1352- }
1344+ if (hwBoneIndex != null) {
1345+ buffers.put(hwBoneIndex.getBufferType().ordinal(), hwBoneIndex);
13531346 }
1354-
1347+ if (hwBoneWeight != null) {
1348+ buffers.put(hwBoneWeight.getBufferType().ordinal(), hwBoneWeight);
1349+ }
1350+
13551351 out.write(lodLevels, "lodLevels", null);
13561352 }
13571353