if (st.keyframes.size()==1){ st.interpolateMissing(); st.update(0); } else uberNode.addController(st);
st.interpolateMissing(); uberNode.addController(st);
    public Node buildScene() throws IOException {        buildObject();        putTranslations();        Node uberNode=new Node("TDS Scene");        LightState ls=null;        for (int i=0;i<spatialNodes.size();i++){            if (spatialNodes.get(i) instanceof Spatial){                Spatial toAttach=(Spatial)spatialNodes.get(i);                if ( toAttach.getParent() == null ) {                    uberNode.attachChild(toAttach);                }            }        }        for (int i=0;i<spatialLights.size();i++){            if (ls==null){                    ls=DisplaySystem.getDisplaySystem().getRenderer().createLightState();                    ls.setEnabled(true);            }            ls.attach((Light) spatialLights.get(i));        }        if (ls!=null)            uberNode.setRenderState(ls);        if (keyframes!=null){            if (st.keyframes.size()==1){                st.interpolateMissing();                st.update(0);            }            else                uberNode.addController(st);            st.setActive(true);        }        return uberNode;    }