[Bf-blender-cvs] [3c70c4f] master: Fix T47520: Compositor Node "Filter" Outputs clear image

Kévin Dietrich noreply at git.blender.org
Tue Aug 2 11:38:18 CEST 2016


Commit: 3c70c4f97074f89780879360cd79d59304a34dad
Author: Kévin Dietrich
Date:   Tue Aug 2 11:38:03 2016 +0200
Branches: master
https://developer.blender.org/rB3c70c4f97074f89780879360cd79d59304a34dad

Fix T47520: Compositor Node "Filter" Outputs clear image

Make 'Laplace' filter an edge filter operation, since this what it is
typically used for, and such operation does not affect the input's alpha
channel.

Reviewers: sergey, campbellbarton

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D1817

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

M	source/blender/compositor/nodes/COM_FilterNode.cpp

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

diff --git a/source/blender/compositor/nodes/COM_FilterNode.cpp b/source/blender/compositor/nodes/COM_FilterNode.cpp
index 7493f24..e8b08ce 100644
--- a/source/blender/compositor/nodes/COM_FilterNode.cpp
+++ b/source/blender/compositor/nodes/COM_FilterNode.cpp
@@ -49,7 +49,7 @@ void FilterNode::convertToOperations(NodeConverter &converter, const CompositorC
 			operation->set3x3Filter(-1, -1, -1, -1, 9, -1, -1, -1, -1);
 			break;
 		case CMP_FILT_LAPLACE:
-			operation = new ConvolutionFilterOperation();
+			operation = new ConvolutionEdgeFilterOperation();
 			operation->set3x3Filter(-1 / 8.0f, -1 / 8.0f, -1 / 8.0f, -1 / 8.0f, 1.0f, -1 / 8.0f, -1 / 8.0f, -1 / 8.0f, -1 / 8.0f);
 			break;
 		case CMP_FILT_SOBEL:




More information about the Bf-blender-cvs mailing list