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:
authorIliya Katueshenock <Moder>2022-11-12 16:18:29 +0300
committerJacques Lucke <jacques@blender.org>2022-11-12 16:18:29 +0300
commitfc544bc974e65364b4307df35d1414f8f9e192ab (patch)
tree5f079b7ca74e89bed48a249061e88cb8a9262a64
parenta582abd92337c7901a7315c4e688b149415b79c6 (diff)
Fix: geometry nodes viewer shows black with dangling reroute input
Differential Revision: https://developer.blender.org/D16322
-rw-r--r--source/blender/nodes/intern/geometry_nodes_lazy_function.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
index 197f0997160..96c369f2f6b 100644
--- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
+++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
@@ -527,7 +527,8 @@ class LazyFunctionForViewerNode : public LazyFunction {
debug_name_ = "Viewer";
Vector<const bNodeSocket *> dummy_used_outputs;
lazy_function_interface_from_node(bnode, r_used_inputs, dummy_used_outputs, inputs_, outputs_);
- if (!r_used_inputs[1]->is_directly_linked()) {
+ const Span<const bNodeLink *> links = r_used_inputs[1]->directly_linked_links();
+ if (links.is_empty() || nodeIsDanglingReroute(&bnode.owner_tree(), links.first()->fromnode)) {
use_field_input_ = false;
r_used_inputs.pop_last();
inputs_.pop_last();