diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:24:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:24:14 +0300 |
commit | 41d4a1986548e66a652221e4a68c52900474eeff (patch) | |
tree | 26acf937ea0b762977f89adcc4e74a3ec9ecee62 /source/blender/freestyle/intern/stroke/StrokeRep.cpp | |
parent | 108045faa01849115c54190ebed788faf36dcb56 (diff) |
ClangFormat: format '#if 0' code in source/
Diffstat (limited to 'source/blender/freestyle/intern/stroke/StrokeRep.cpp')
-rw-r--r-- | source/blender/freestyle/intern/stroke/StrokeRep.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/stroke/StrokeRep.cpp b/source/blender/freestyle/intern/stroke/StrokeRep.cpp index 026a7b2fc8f..f1483e80083 100644 --- a/source/blender/freestyle/intern/stroke/StrokeRep.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeRep.cpp @@ -105,7 +105,7 @@ static bool notValid(Vec2r p) } #if 0 -static real crossP(const Vec2r& A, const Vec2r& B) +static real crossP(const Vec2r &A, const Vec2r &B) { return A[0] * B[1] - A[1] * B[0]; } @@ -498,8 +498,8 @@ void Strip::setVertexColor(const vector<StrokeVertex *> &iStrokeVertices) _vertices[i]->setAlpha(sv->attribute().getAlpha()); i++; #if 0 - cerr << "col=("<<sv->attribute().getColor()[0] << ", " - << sv->attribute().getColor()[1] << ", " << sv->attribute().getColor()[2] << ")" << endl; + cerr << "col=(" << sv->attribute().getColor()[0] << ", " << sv->attribute().getColor()[1] + << ", " << sv->attribute().getColor()[2] << ")" << endl; #endif } } @@ -545,8 +545,8 @@ void Strip::computeTexCoordWithTips(const vector<StrokeVertex *> &iStrokeVertice fact = (float(tiles) + 0.5) / l; #if 0 - cerr << "l=" << l << " tiles=" << tiles << " _averageThicnkess=" - << _averageThickness << " strokeLength=" << (*v)->strokeLength() << endl; + cerr << "l=" << l << " tiles=" << tiles << " _averageThicnkess=" << _averageThickness + << " strokeLength=" << (*v)->strokeLength() << endl; #endif vector<StrokeVertexRep *>::iterator currentSV = _vertices.begin(); @@ -690,7 +690,7 @@ void Strip::computeTexCoordWithTips(const vector<StrokeVertex *> &iStrokeVertice for (i = 0; i < _sizeStrip; i++) cerr << "(" << _texCoord[i][0] << ", " << _texCoord[i][1] << ") "; - cerr << endl; + cerr << endl; Vec2r vec_tmp; for (i = 0; i < _sizeStrip / 2; i++) @@ -718,7 +718,7 @@ StrokeRep::StrokeRep() if (ptm) _textureId = ptm->getDefaultTextureId(); #if 0 - _averageTextureAlpha = 0.5; //default value + _averageTextureAlpha = 0.5; //default value if (_strokeType == OIL_STROKE) _averageTextureAlpha = 0.75; if (_strokeType >= NO_BLEND_STROKE) @@ -749,7 +749,7 @@ StrokeRep::StrokeRep(Stroke *iStroke) } #if 0 - _averageTextureAlpha = 0.5; //default value + _averageTextureAlpha = 0.5; //default value if (_strokeType == OIL_STROKE) _averageTextureAlpha = 0.75; if (_strokeType >= NO_BLEND_STROKE) |