Commit 4cfbce4d authored by Radek Privara's avatar Radek Privara
Browse files

Disallow zero opacity

parent 5130fb68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -303,7 +303,7 @@ void VisualizationGeant4Module::set_visualization_attributes() {
    // To add some opacity in the solids, set to 0.4. 1 means opaque.
    // Opacity can be switched off in the visualisation.
    auto alpha = config_.get<double>("opacity", 0.4);
    if(alpha < 0 || alpha > 1) {
    if(alpha <= 0 || alpha > 1) {
        throw InvalidValueError(config_, "opacity", "opacity level should be between 0 and 1");
    }