Skip to content

Commit

Permalink
MinieDump: tweak the output boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Aug 31, 2023
1 parent 2555ffc commit 671757f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ public static void main(String[] arguments) {
private static void dumpAsset(String assetPath) {
newAssetManager();

System.out.print(assetPath);
System.out.print(" contains a ");
System.out.print(MyString.quote(assetPath));
System.out.flush();

Object loadedAsset;
Expand All @@ -170,14 +169,15 @@ private static void dumpAsset(String assetPath) {
loadedAsset = assetManager.loadAsset(modelKey);
}

System.out.print(" contains a ");
if (loadedAsset instanceof CollisionShape) {
System.out.print("collision shape:");
dumper.dump((CollisionShape) loadedAsset, " ");
System.out.println();
System.out.println();

} else if (loadedAsset instanceof Spatial) {
System.out.println("model:");
System.out.println("model or scene:");
dumper.dump((Spatial) loadedAsset, " ");
System.out.println();
System.out.println();
Expand Down

0 comments on commit 671757f

Please sign in to comment.