From 850d73414716351421245102f4d2255691987b8a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Jun 2012 18:46:18 +0000 Subject: make mask handles draw with an outline - when outline option is enabled. --- source/blender/compositor/operations/COM_CalculateMeanOperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/compositor/operations/COM_CalculateMeanOperation.cpp') diff --git a/source/blender/compositor/operations/COM_CalculateMeanOperation.cpp b/source/blender/compositor/operations/COM_CalculateMeanOperation.cpp index 3f9003b8c48..8ef7605c21a 100644 --- a/source/blender/compositor/operations/COM_CalculateMeanOperation.cpp +++ b/source/blender/compositor/operations/COM_CalculateMeanOperation.cpp @@ -88,7 +88,7 @@ void CalculateMeanOperation::calculateMean(MemoryBuffer *tile) float *buffer = tile->getBuffer(); int size = tile->getWidth() * tile->getHeight(); int pixels = 0; - float sum; + float sum = 0.0f; for (int i = 0, offset = 0; i < size; i++, offset += 4) { if (buffer[offset + 3] > 0) { pixels++; -- cgit v1.2.3