[Bf-blender-cvs] [651689f] blender-v2.74-release: Fix T43974: Alpha output of movie clip node crashes blender

Sergey Sharybin noreply at git.blender.org
Tue Mar 17 11:50:09 CET 2015


Commit: 651689fc62809e3bf8c57ba9fb138456acecd96d
Author: Sergey Sharybin
Date:   Thu Mar 12 17:13:38 2015 +0500
Branches: blender-v2.74-release
https://developer.blender.org/rB651689fc62809e3bf8c57ba9fb138456acecd96d

Fix T43974: Alpha output of movie clip node crashes blender

Issue was caused by a bug in the memory optimization commit,
should be backported to the final release branch.

===================================================================

M	source/blender/compositor/operations/COM_MovieClipOperation.cpp

===================================================================

diff --git a/source/blender/compositor/operations/COM_MovieClipOperation.cpp b/source/blender/compositor/operations/COM_MovieClipOperation.cpp
index 9a184ae..133b6d5 100644
--- a/source/blender/compositor/operations/COM_MovieClipOperation.cpp
+++ b/source/blender/compositor/operations/COM_MovieClipOperation.cpp
@@ -124,9 +124,7 @@ MovieClipAlphaOperation::MovieClipAlphaOperation() : MovieClipBaseOperation()
 
 void MovieClipAlphaOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
 {
-	MovieClipBaseOperation::executePixelSampled(output, x, y, sampler);
-	output[0] = output[3];
-	output[1] = 0.0f;
-	output[2] = 0.0f;
-	output[3] = 0.0f;
+	float result[4];
+	MovieClipBaseOperation::executePixelSampled(result, x, y, sampler);
+	output[0] = result[3];
 }




More information about the Bf-blender-cvs mailing list