From 2b588f529846e9a5e698390366b9c413fa18e5eb Mon Sep 17 00:00:00 2001 From: "roo..li" Date: Thu, 24 May 2012 08:05:10 +0000 Subject: [PATCH] jmp code palette - changed a normalize() to normalizeLocal() git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9416 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/codepalette/scene/JmePaletteSunLight.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSunLight.java b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSunLight.java index 9f44a7532..538223744 100644 --- a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSunLight.java +++ b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSunLight.java @@ -47,7 +47,7 @@ public class JmePaletteSunLight implements ActiveEditorDrop { private String createBody() { - String body = " /** A white, directional light source */ \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection((new Vector3f(-0.5f, -0.5f, -0.5f)).normalize());\n sun.setColor(ColorRGBA.White);\n rootNode.addLight(sun); "; + String body = " /** A white, directional light source */ \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection((new Vector3f(-0.5f, -0.5f, -0.5f)).normalizeLocal());\n sun.setColor(ColorRGBA.White);\n rootNode.addLight(sun); "; return body; }