Fixed a bug in the user data dialog box, when values were not populated when using a custom UserData class

experimental
Nehon 11 years ago
parent 51215a352e
commit 6ec736c005
  1. 1
      sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.form
  2. 2
      sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.java

@ -12,6 +12,7 @@
</Properties> </Properties>
<SyntheticProperties> <SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/> <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties> </SyntheticProperties>
<AuxValues> <AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/> <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>

@ -137,8 +137,8 @@ public class UserDataDialog extends javax.swing.JDialog {
try { try {
prop = new SceneExplorerProperty(obj.getClass().cast(obj), returntype, method, setter); prop = new SceneExplorerProperty(obj.getClass().cast(obj), returntype, method, setter);
prop.setName(name); prop.setName(name);
((SceneExplorerProperty)prop).syncValue();
} catch (NoSuchMethodException ex) { } catch (NoSuchMethodException ex) {
Exceptions.printStackTrace(ex); Exceptions.printStackTrace(ex);

Loading…
Cancel
Save