diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/properties/QuaternionPropertyEditor.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/properties/QuaternionPropertyEditor.java index 733d332e0..04f0a9dbb 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/properties/QuaternionPropertyEditor.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/properties/QuaternionPropertyEditor.java @@ -74,7 +74,7 @@ public class QuaternionPropertyEditor implements PropertyEditor { public String getAsText() { float[] angles=quaternion.toAngles(new float[3]); - return "[" + angles[0] + ", " + angles[1] + ", " + angles[2] + "]"; + return "[" + (float)Math.toDegrees(angles[0]) + ", " + (float)Math.toDegrees(angles[1]) + ", " + (float)Math.toDegrees(angles[2]) + "]"; } public void setAsText(String text) throws IllegalArgumentException { @@ -87,7 +87,7 @@ public class QuaternionPropertyEditor implements PropertyEditor { float[] floats = new float[3]; for (int i = 0; i < values.length; i++) { String string = values[i]; - floats[i] = Float.parseFloat(string); + floats[i] = (float)Math.toRadians(Float.parseFloat(string)); } Quaternion old=new Quaternion(); old.set(quaternion);