diff --git a/engine/src/core/com/jme3/light/Light.java b/engine/src/core/com/jme3/light/Light.java index ef4c5ed66..4c08f3111 100644 --- a/engine/src/core/com/jme3/light/Light.java +++ b/engine/src/core/com/jme3/light/Light.java @@ -76,6 +76,8 @@ public abstract class Light implements Savable, Cloneable { * If light is disabled, it will not take effect. */ protected boolean enabled = true; + /** The light's name. */ + protected String name; /** * @return The color of the light. @@ -100,6 +102,22 @@ public abstract class Light implements Savable, Cloneable { return enabled; } + /** + * This method sets the light's name. + * @param name the light's name + */ + public void setName(String name) { + this.name = name; + } + + /** + * This method returns the light's name. + * @return the light's name + */ + public String getName() { + return name; + } + @Override public Light clone(){ try {