2
0
Эх сурвалжийг харах

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

Nehon 11 жил өмнө
parent
commit
6ec736c005

+ 1 - 0
sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.form

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

+ 1 - 1
sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.java

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