Skip to content

Commit 9ae61e5

Browse files
N3WWNjonoomph
authored andcommitted
Fix logic for 3 of the 4 blur parameters (#118)
1 parent 694ee7c commit 9ae61e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/effects/Blur.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ void Blur::SetJsonValue(Json::Value root) {
302302
// Set data from Json (if key is found)
303303
if (!root["horizontal_radius"].isNull())
304304
horizontal_radius.SetJsonValue(root["horizontal_radius"]);
305-
else if (!root["vertical_radius"].isNull())
305+
if (!root["vertical_radius"].isNull())
306306
vertical_radius.SetJsonValue(root["vertical_radius"]);
307-
else if (!root["sigma"].isNull())
307+
if (!root["sigma"].isNull())
308308
sigma.SetJsonValue(root["sigma"]);
309-
else if (!root["iterations"].isNull())
309+
if (!root["iterations"].isNull())
310310
iterations.SetJsonValue(root["iterations"]);
311311
}
312312

0 commit comments

Comments
 (0)