Browse Source

LightControl: update toString() method

Wyatt Gillette 3 months ago
parent
commit
81fbfd9f1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jme3-core/src/main/java/com/jme3/scene/control/LightControl.java

+ 1 - 1
jme3-core/src/main/java/com/jme3/scene/control/LightControl.java

@@ -314,7 +314,7 @@ public class LightControl extends AbstractControl {
     @Override
     public String toString() {
         return getClass().getSimpleName() +
-                "[light=" + light +
+                "[light=" + (light != null ? light.getType() : null) +
                 ", controlDir=" + controlDir +
                 ", axisRotation=" + axisRotation +
                 ", invertAxisDirection=" + invertAxisDirection +