Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ public void setInvertAxisDirection(boolean invertAxisDirection) {
}

private void validateSupportedLightType(Light light) {
if (light == null) {
return;
}

switch (light.getType()) {
case Point:
case Directional:
Expand All @@ -172,6 +176,10 @@ private void validateSupportedLightType(Light light) {

@Override
protected void controlUpdate(float tpf) {
if (light == null) {
return;
}

switch (controlDir) {
case SpatialToLight:
spatialToLight(light);
Expand Down