[taken]Fix issue #783

Fix issue #783
empirephoenix-patch-1
Yan 7 years ago committed by Rémy Bouquet
parent 9675d52745
commit 1f4365a1f4
  1. 9
      jme3-plugins/src/xml/java/com/jme3/export/xml/DOMInputCapsule.java

@ -974,14 +974,13 @@ public class DOMInputCapsule implements InputCapsule {
ret = referencedSavables.get(reference);
} else {
String className = currentElem.getNodeName();
if (defVal != null) {
className = defVal.getClass().getName();
} else if (currentElem.hasAttribute("class")) {
if (currentElem.hasAttribute("class")) {
className = currentElem.getAttribute("class");
} else if (defVal != null) {
className = defVal.getClass().getName();
}
tmp = SavableClassUtil.fromName(className, null);
String versionsStr = currentElem.getAttribute("savable_versions");
if (versionsStr != null && !versionsStr.equals("")){
String[] versionStr = versionsStr.split(",");
@ -1508,4 +1507,4 @@ public class DOMInputCapsule implements InputCapsule {
? zeroStrings
: outStrings;
}
}
}

Loading…
Cancel
Save