From 6ec736c005583827541d8f9feedd7bf662ff98dc Mon Sep 17 00:00:00 2001 From: Nehon Date: Sat, 7 Jun 2014 14:30:40 +0200 Subject: [PATCH] Fixed a bug in the user data dialog box, when values were not populated when using a custom UserData class --- .../gde/core/sceneexplorer/nodes/actions/UserDataDialog.form | 1 + .../gde/core/sceneexplorer/nodes/actions/UserDataDialog.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.form b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.form index 8101ad25a..2bba42714 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.form +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.form @@ -12,6 +12,7 @@ + diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.java index ce77d449e..c382e9798 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/UserDataDialog.java +++ b/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);