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:
Diffstat (limited to 'source/blender/compositor/intern/COM_ChunkOrder.cpp')
-rw-r--r--source/blender/compositor/intern/COM_ChunkOrder.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/compositor/intern/COM_ChunkOrder.cpp b/source/blender/compositor/intern/COM_ChunkOrder.cpp
index 7c9e5013c5d..91437aff9e0 100644
--- a/source/blender/compositor/intern/COM_ChunkOrder.cpp
+++ b/source/blender/compositor/intern/COM_ChunkOrder.cpp
@@ -21,27 +21,27 @@
ChunkOrder::ChunkOrder()
{
- this->m_distance = 0.0;
- this->m_number = 0;
- this->m_x = 0;
- this->m_y = 0;
+ distance = 0.0;
+ number = 0;
+ x = 0;
+ y = 0;
}
-void ChunkOrder::determineDistance(ChunkOrderHotspot **hotspots, unsigned int numberOfHotspots)
+void ChunkOrder::update_distance(ChunkOrderHotspot **hotspots, unsigned int len_hotspots)
{
unsigned int index;
- double distance = FLT_MAX;
- for (index = 0; index < numberOfHotspots; index++) {
+ double new_distance = FLT_MAX;
+ for (index = 0; index < len_hotspots; index++) {
ChunkOrderHotspot *hotspot = hotspots[index];
- double ndistance = hotspot->determineDistance(this->m_x, this->m_y);
- if (ndistance < distance) {
- distance = ndistance;
+ double ndistance = hotspot->determineDistance(x, y);
+ if (ndistance < new_distance) {
+ new_distance = ndistance;
}
}
- this->m_distance = distance;
+ this->distance = new_distance;
}
bool operator<(const ChunkOrder &a, const ChunkOrder &b)
{
- return a.m_distance < b.m_distance;
+ return a.distance < b.distance;
}