Skip to content

Commit 81fbfd9

Browse files
authored
LightControl: update toString() method
1 parent 2632bd9 commit 81fbfd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public void write(JmeExporter ex) throws IOException {
314314
@Override
315315
public String toString() {
316316
return getClass().getSimpleName() +
317-
"[light=" + light +
317+
"[light=" + (light != null ? light.getType() : null) +
318318
", controlDir=" + controlDir +
319319
", axisRotation=" + axisRotation +
320320
", invertAxisDirection=" + invertAxisDirection +

0 commit comments

Comments
 (0)