diff --git a/light/ltface.cc b/light/ltface.cc index bfdaf489..819ad5d3 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -1767,6 +1767,13 @@ void SetupDirt( void ) { // check if needed + if (!globalDirt.boolValue() + && globalDirt.isLocked()) { + // HACK: "-dirt 0" disables all dirtmapping even if we would otherwise use it. + dirt_in_use = false; + return; + } + if (globalDirt.boolValue() || minlightDirt.boolValue() || sunlight_dirt.boolValue()