diff --git a/jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/SceneLoader.java b/jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/SceneLoader.java index 7b9a5a7f5..accbdbbf4 100644 --- a/jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/SceneLoader.java +++ b/jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/SceneLoader.java @@ -104,7 +104,7 @@ public class SceneLoader implements AssetLoader { loadScene(stream); linkScene(); if(warnings.size() > 0) - logger.log(Level.WARNING, "Model load finished with warnings:\n" + String.join("\n", warnings)); + logger.log(Level.WARNING, "Model load finished with warnings:\n" + join(warnings, "\n")); } finally { releaseObjects(); if(stream != null) @@ -430,10 +430,6 @@ public class SceneLoader implements AssetLoader { animControl.setAnimations(anims); } - private static boolean haveAnyChannel(FbxAnimNode anims) { - return anims != null && anims.haveAnyChannel(); - } - private void releaseObjects() { // Reset settings unitSize = 1; @@ -461,4 +457,19 @@ public class SceneLoader implements AssetLoader { animControl = null; sceneNode = null; } + + + private static boolean haveAnyChannel(FbxAnimNode anims) { + return anims != null && anims.haveAnyChannel(); + } + + private static String join(List list, String glue) { + StringBuilder sb = new StringBuilder(); + for(int i = 0; i < list.size(); ++i) { + if(sb.length() != 0) + sb.append(glue); + sb.append(list.get(i)); + } + return sb.toString(); + } }