|
@@ -4608,7 +4608,7 @@ Error GLTFDocument::_parse_lights(Ref<GLTFState> state) {
|
|
|
light->outer_cone_angle = spot["outerConeAngle"];
|
|
|
ERR_CONTINUE_MSG(light->inner_cone_angle >= light->outer_cone_angle, "The inner angle must be smaller than the outer angle.");
|
|
|
} else if (type != "point" && type != "directional") {
|
|
|
- ERR_CONTINUE_MSG(ERR_PARSE_ERROR, "Light type is unknown.");
|
|
|
+ ERR_CONTINUE_MSG(true, "Light type is unknown.");
|
|
|
}
|
|
|
|
|
|
state->lights.push_back(light);
|