[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45527] branches/tile/source/blender/ compositor/operations/COM_VectorBlurOperation.cpp: TileBranch

Jeroen Bakker j.bakker at atmind.nl
Wed Apr 11 09:09:36 CEST 2012


Revision: 45527
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45527
Author:   jbakker
Date:     2012-04-11 07:09:35 +0000 (Wed, 11 Apr 2012)
Log Message:
-----------
TileBranch
 * do not use area of interest, when the blur has already been calculated. Saves some time in the memory manager.
 - At Mind - 

Modified Paths:
--------------
    branches/tile/source/blender/compositor/operations/COM_VectorBlurOperation.cpp

Modified: branches/tile/source/blender/compositor/operations/COM_VectorBlurOperation.cpp
===================================================================
--- branches/tile/source/blender/compositor/operations/COM_VectorBlurOperation.cpp	2012-04-11 04:40:45 UTC (rev 45526)
+++ branches/tile/source/blender/compositor/operations/COM_VectorBlurOperation.cpp	2012-04-11 07:09:35 UTC (rev 45527)
@@ -87,12 +87,16 @@
 }
 
 bool VectorBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) {
-	rcti newInput;
-	newInput.xmax = this->getWidth();
-	newInput.xmin = 0;
-	newInput.ymax = this->getHeight();
-	newInput.ymin = 0;
-	return NodeOperation::determineDependingAreaOfInterest(&newInput, readOperation, output);
+	if (this->cachedInstance == NULL) {
+		rcti newInput;
+		newInput.xmax = this->getWidth();
+		newInput.xmin = 0;
+		newInput.ymax = this->getHeight();
+		newInput.ymin = 0;
+		return NodeOperation::determineDependingAreaOfInterest(&newInput, readOperation, output);
+	} else {
+		return false;
+	}
 }
 
 void VectorBlurOperation::generateVectorBlur(float* data, MemoryBuffer* inputImage, MemoryBuffer* inputSpeed, MemoryBuffer* inputZ) {




More information about the Bf-blender-cvs mailing list