Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Created May 9, 2014 12:53
Show Gist options
  • Save nddrylliog/22bd945568cb56b32f84 to your computer and use it in GitHub Desktop.
Save nddrylliog/22bd945568cb56b32f84 to your computer and use it in GitHub Desktop.
diff --git a/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/MeshSpawnShapeValue.java b/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/MeshSpawnShapeValue.java
index 7d7cb2c..bc5f297 100644
--- a/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/MeshSpawnShapeValue.java
+++ b/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/MeshSpawnShapeValue.java
@@ -87,7 +87,7 @@ public abstract class MeshSpawnShapeValue extends SpawnShapeValue {
SaveData saveData = data.getSaveData();
AssetDescriptor descriptor = saveData.loadAsset();
if(descriptor!=null){
- Model model = manager.get(descriptor);
+ Model model = (Model) manager.get(descriptor);
setMesh(model.meshes.get((Integer)saveData.load("index")), model);
}
}
@lordjone
Copy link

lordjone commented May 9, 2014

yes, jrenner told me the same about that, i think it can be related to java sdk, will add this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment