[Bf-blender-cvs] [fc544bc974e] blender-v3.4-release: Fix: geometry nodes viewer shows black with dangling reroute input
Iliya Katueshenock
noreply at git.blender.org
Sat Nov 12 14:19:13 CET 2022
Commit: fc544bc974e65364b4307df35d1414f8f9e192ab
Author: Iliya Katueshenock
Date: Sat Nov 12 14:18:29 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rBfc544bc974e65364b4307df35d1414f8f9e192ab
Fix: geometry nodes viewer shows black with dangling reroute input
Differential Revision: https://developer.blender.org/D16322
===================================================================
M source/blender/nodes/intern/geometry_nodes_lazy_function.cc
===================================================================
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();
More information about the Bf-blender-cvs
mailing list