@@ -0,0 +1,3142 @@
+/*%0A * Copyright (c) 2020 jMonkeyEngine%0A * All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted provided that the following conditions are%0A * met:%0A *%0A * * Redistributions of source code must retain the above copyright%0A *   notice, this list of conditions and the following disclaimer.%0A *%0A * * Redistributions in binary form must reproduce the above copyright%0A *   notice, this list of conditions and the following disclaimer in the%0A *   documentation and/or other materials provided with the distribution.%0A *%0A * * Neither the name of 'jMonkeyEngine' nor the names of its contributors%0A *   may be used to endorse or promote products derived from this software%0A *   without specific prior written permission.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED%0A * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR%0A * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR%0A * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,%0A * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,%0A * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR%0A * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF%0A * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING%0A * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS%0A * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0Apackage jme3test.model.anim;%0A%0Aimport com.jme3.anim.SkinningControl;%0Aimport com.jme3.app.SimpleApplication;%0Aimport com.jme3.light.DirectionalLight;%0Aimport com.jme3.math.ColorRGBA;%0Aimport com.jme3.math.Quaternion;%0Aimport com.jme3.math.Vector3f;%0Aimport com.jme3.scene.Spatial;%0A%0A/**%0A * Test case for Issue 1395 (OGRE Importer should call saveInitialPose, to be%0A * consistent with GLTF)%0A *%0A * If the test succeeds, the humanoid Oto model will appear in a standing%0A * position. If the test fails, the model will appear rolled up into a tight%0A * bundle.%0A *%0A * @author sgold%0A */%0Apublic class TestIssue1395 extends SimpleApplication %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        TestIssue1395 app = new TestIssue1395();%0A        app.start();%0A    %7D%0A%0A    @Override%0A    public void simpleInitApp() %7B%0A        viewPort.setBackgroundColor(new ColorRGBA(1f, 1f, 1f, 1f));%0A%0A        flyCam.setMoveSpeed(10f);%0A        cam.setLocation(new Vector3f(6.4013605f, 7.488437f, 12.843031f));%0A        cam.setRotation(new Quaternion(-0.06f, 0.939258f, -0.2399f, -0.2379f));%0A%0A        DirectionalLight dl = new DirectionalLight();%0A        dl.setDirection(new Vector3f(-0.1f, -0.7f, -1).normalizeLocal());%0A        dl.setColor(new ColorRGBA(1f, 1f, 1f, 1f));%0A        rootNode.addLight(dl);%0A%0A        Spatial model = assetManager.loadModel(%22Models/Oto/Oto.mesh.xml%22);%0A        rootNode.attachChild(model);%0A        model.center();%0A%0A        SkinningControl skinningControl%0A                = model.getControl(SkinningControl.class);%0A        skinningControl.getArmature().applyInitialPose();%0A    %7D%0A%7D%0A

add testcase for issue #1395 (Ogre importer set the initial pose)