[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47082] branches/soc-2011-tomato/source/ blender/compositor/operations/COM_MaskOperation.cpp: Fix threading issue with Mask node
Sergey Sharybin
sergey.vfx at gmail.com
Sun May 27 18:59:37 CEST 2012
Revision: 47082
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47082
Author: nazgul
Date: 2012-05-27 16:59:36 +0000 (Sun, 27 May 2012)
Log Message:
-----------
Fix threading issue with Mask node
Modified Paths:
--------------
branches/soc-2011-tomato/source/blender/compositor/operations/COM_MaskOperation.cpp
Modified: branches/soc-2011-tomato/source/blender/compositor/operations/COM_MaskOperation.cpp
===================================================================
--- branches/soc-2011-tomato/source/blender/compositor/operations/COM_MaskOperation.cpp 2012-05-27 15:57:43 UTC (rev 47081)
+++ branches/soc-2011-tomato/source/blender/compositor/operations/COM_MaskOperation.cpp 2012-05-27 16:59:36 UTC (rev 47082)
@@ -69,9 +69,12 @@
if (this->rasterizedMask == NULL) {
int width = this->getWidth();
int height = this->getHeight();
+ float *buffer;
- this->rasterizedMask = (float *)MEM_callocN(sizeof(float) * width * height, "rasterized mask");
- BKE_mask_rasterize(mask, width, height, this->rasterizedMask);
+ buffer = (float *)MEM_callocN(sizeof(float) * width * height, "rasterized mask");
+ BKE_mask_rasterize(mask, width, height, buffer);
+
+ this->rasterizedMask = buffer;
}
BLI_mutex_unlock(getMutex());
More information about the Bf-blender-cvs
mailing list