@Override public void readFields(DataInput in) throws IOException { attr = in.readInt(); split = in.readDouble(); loChild = Node.read(in); hiChild = Node.read(in); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); // material = null; // String matName = ic.readString("materialName", null); // if (matName != null) { // // Material name is set, // // Attempt to load material via J3M // try { // material = im.getAssetManager().loadMaterial(matName); // } catch (AssetNotFoundException ex) { // // Cannot find J3M file. // logger.log(Level.FINE, "Could not load J3M file {0} for Geometry.", // matName); // } // } // // If material is NULL, try to load it from the geometry // if (material == null) { // material = (Material) ic.readSavable("material", null); // } }