Skip to content

Commit

Permalink
Update src/app/3d/qgslightswidget.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
2 people authored and nyalldawson committed Jun 19, 2020
1 parent e31116b commit d1ed0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/3d/qgslightswidget.cpp
Expand Up @@ -158,7 +158,7 @@ void QgsLightsWidget::onAddLight()

void QgsLightsWidget::onAddDirectionalLight()
{
if ( mDirectionalLights.count() >= 4 )
if ( mDirectionalLights.count() > 4 )
{
QMessageBox::warning( this, tr( "Add Directional Light" ), tr( "It is not possible to add more than 4 directional lights to the scene." ) );
return;
Expand Down

0 comments on commit d1ed0cc

Please sign in to comment.