We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1af2acf commit 2632bd9Copy full SHA for 2632bd9
1 file changed
jme3-core/src/main/java/com/jme3/scene/control/LightControl.java
@@ -158,6 +158,10 @@ public void setInvertAxisDirection(boolean invertAxisDirection) {
158
}
159
160
private void validateSupportedLightType(Light light) {
161
+ if (light == null) {
162
+ return;
163
+ }
164
+
165
switch (light.getType()) {
166
case Point:
167
case Directional:
@@ -172,6 +176,10 @@ private void validateSupportedLightType(Light light) {
172
176
173
177
@Override
174
178
protected void controlUpdate(float tpf) {
179
180
181
182
175
183
switch (controlDir) {
184
case SpatialToLight:
185
spatialToLight(light);
0 commit comments