restore default visapprox
This commit is contained in:
parent
2e0e23622b
commit
8cb2b72237
|
|
@ -1544,8 +1544,12 @@ int light_main(int argc, const char **argv)
|
||||||
|
|
||||||
// check vis approx type
|
// check vis approx type
|
||||||
if (light_options.visapprox.value() == visapprox_t::AUTO) {
|
if (light_options.visapprox.value() == visapprox_t::AUTO) {
|
||||||
|
if (!bsp.dvis.bits.empty()) {
|
||||||
|
light_options.visapprox.set_value(visapprox_t::VIS, settings::source::DEFAULT);
|
||||||
|
} else {
|
||||||
light_options.visapprox.set_value(visapprox_t::RAYS, settings::source::DEFAULT);
|
light_options.visapprox.set_value(visapprox_t::RAYS, settings::source::DEFAULT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
img::load_textures(&bsp, light_options);
|
img::load_textures(&bsp, light_options);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue