소스 검색

LightControl: update toString() method

Wyatt Gillette 3 달 전
부모
커밋
81fbfd9f1a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 +