Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Emara <mail@OmarEmara.dev>2022-08-10 11:36:57 +0300
committerOmar Emara <mail@OmarEmara.dev>2022-08-10 11:36:57 +0300
commitfad112be1c6a06f6412b7c19379032008c733563 (patch)
treeade70fab5d3433c6c9c2796c700e92b3c0e71a70 /source/blender/compositor/realtime_compositor/intern/evaluator.cc
parent40c45985a924e2e2310d5c51cf399150d557792c (diff)
Realtime Compositor: Add stub unsupported nodes
This patch adds a stub implementation for all unsupported nodes. The inputs are passed through to the outputs where it make sense, while other outputs will be allocated a single zero value. This seems to be preferred by users as opposed to stopping execution and displaying an error message. Differential Revision: https://developer.blender.org/D15464 Reviewed By: Clement Foucault
Diffstat (limited to 'source/blender/compositor/realtime_compositor/intern/evaluator.cc')
-rw-r--r--source/blender/compositor/realtime_compositor/intern/evaluator.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/compositor/realtime_compositor/intern/evaluator.cc b/source/blender/compositor/realtime_compositor/intern/evaluator.cc
index d5cc7f3bc0b..597453baf21 100644
--- a/source/blender/compositor/realtime_compositor/intern/evaluator.cc
+++ b/source/blender/compositor/realtime_compositor/intern/evaluator.cc
@@ -62,22 +62,6 @@ bool Evaluator::validate_node_tree()
return false;
}
- /* Find any of the unsupported nodes in the node tree. We only track one of them because we
- * display a message for only one at a time to avoid long messages. */
- DNode unsupported_node;
- derived_node_tree_->foreach_node([&](DNode node) {
- if (!is_node_supported(node)) {
- unsupported_node = node;
- }
- });
-
- /* unsupported_node is null if no unsupported node was found. */
- if (unsupported_node) {
- std::string message = "Compositor node tree has an unsupported node: ";
- context_.set_info_message(message + unsupported_node->idname());
- return false;
- }
-
return true;
}