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.

Revisions

  1. nddrylliog created this gist May 9, 2014.
    13 changes: 13 additions & 0 deletions libgdx-lordjone.diff
    Original 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);
    }
    }