Created
May 9, 2014 12:53
-
-
Save nddrylliog/22bd945568cb56b32f84 to your computer and use it in GitHub Desktop.
Revisions
-
nddrylliog created this gist
May 9, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ 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); } }