From 468765d29e783e0983a607310788dbbedc912570 Mon Sep 17 00:00:00 2001 From: Manuel Castilla Date: Mon, 19 Jul 2021 19:55:15 +0200 Subject: Compositor: Export operation results as debug option When fixing issues, seeing operation results can be helpful for detecting which operation went wrong. This commit adds an option for exporting all operations results to image files. Exceptions are: - Output operations: They are already exported or can be seen in UI. - Constant operations: There are too many and is rarely useful. They are exported to "/COM_operations/" with filenames "_.png". Only works on full frame execution mode. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11722 --- source/blender/compositor/intern/COM_FullFrameExecutionModel.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/compositor/intern/COM_FullFrameExecutionModel.cc') diff --git a/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc b/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc index 3b0a9172871..9f6904bb306 100644 --- a/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc +++ b/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc @@ -104,6 +104,7 @@ void FullFrameExecutionModel::render_operation(NodeOperation *op) op->render(op_buf, areas, input_bufs); active_buffers_.set_rendered_buffer(op, std::unique_ptr(op_buf)); + DebugInfo::operation_rendered(op, op_buf); operation_finished(op); } -- cgit v1.2.3