D713: correct error /w braces (freestyle)
[blender.git] / source / blender / freestyle / intern / stroke / BasicStrokeShaders.cpp
index b7b5eb4162b7de7e6145c8efe78b0c08e48b8da9..69ca45d3ec77877ce69eae82b1b7847fc4b5858b 100644 (file)
@@ -808,9 +808,10 @@ int BezierCurveShader::shade(Stroke& stroke) const
             ++it)
        {
                (it)->setAttribute(*a);
-               if ((index <= index1) || (index > index2))
+               if ((index <= index1) || (index > index2)) {
                        ++a;
-                       ++index;
+               }
+               ++index;
        }
        return 0;
 }