Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-16 03:58:22 +0300
committerCampbell Barton <campbell@blender.org>2022-03-16 03:58:22 +0300
commitbe7855591e3b47e5e72c09555946f75975a8c028 (patch)
treeeb11ff27360e2285cddfe24609bc293b103e9ac0 /source/blender/freestyle/intern
parent379bd6d50ce37e07cbc4fb1e1c47c814f6a7530e (diff)
Cleanup: rename cnt to count
Follow naming from T85728.
Diffstat (limited to 'source/blender/freestyle/intern')
-rw-r--r--source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
index dc3b7d9795a..5642a80e77f 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
@@ -430,8 +430,8 @@ static void computeCumulativeVisibility(ViewMap *ioViewMap,
int nSamples = 0;
vector<WFace *> wFaces;
WFace *wFace = nullptr;
- unsigned cnt = 0;
- unsigned cntStep = (unsigned)ceil(0.01f * vedges.size());
+ unsigned count = 0;
+ unsigned count_step = (unsigned)ceil(0.01f * vedges.size());
unsigned tmpQI = 0;
unsigned qiClasses[256];
unsigned maxIndex, maxCard;
@@ -441,13 +441,13 @@ static void computeCumulativeVisibility(ViewMap *ioViewMap,
if (iRenderMonitor->testBreak()) {
break;
}
- if (cnt % cntStep == 0) {
+ if (count % count_step == 0) {
stringstream ss;
- ss << "Freestyle: Visibility computations " << (100 * cnt / vedges.size()) << "%";
+ ss << "Freestyle: Visibility computations " << (100 * count / vedges.size()) << "%";
iRenderMonitor->setInfo(ss.str());
- iRenderMonitor->progress((float)cnt / vedges.size());
+ iRenderMonitor->progress((float)count / vedges.size());
}
- cnt++;
+ count++;
}
#if LOGGING
if (_global.debug & G_DEBUG_FREESTYLE) {
@@ -621,9 +621,9 @@ static void computeCumulativeVisibility(ViewMap *ioViewMap,
}
if (iRenderMonitor && !vedges.empty()) {
stringstream ss;
- ss << "Freestyle: Visibility computations " << (100 * cnt / vedges.size()) << "%";
+ ss << "Freestyle: Visibility computations " << (100 * count / vedges.size()) << "%";
iRenderMonitor->setInfo(ss.str());
- iRenderMonitor->progress((float)cnt / vedges.size());
+ iRenderMonitor->progress((float)count / vedges.size());
}
}