[Bf-blender-cvs] [c1ba8dcd859] functions: Fix

Jacques Lucke noreply at git.blender.org
Tue Apr 2 12:36:06 CEST 2019


Commit: c1ba8dcd859e459080dc9b23f18ccbab3b965f26
Author: Jacques Lucke
Date:   Tue Apr 2 12:35:49 2019 +0200
Branches: functions
https://developer.blender.org/rBc1ba8dcd859e459080dc9b23f18ccbab3b965f26

Fix

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

M	source/blender/functions/frontends/data_flow_nodes/graph_generation.cpp

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

diff --git a/source/blender/functions/frontends/data_flow_nodes/graph_generation.cpp b/source/blender/functions/frontends/data_flow_nodes/graph_generation.cpp
index a1d91b92bcc..35e12a23117 100644
--- a/source/blender/functions/frontends/data_flow_nodes/graph_generation.cpp
+++ b/source/blender/functions/frontends/data_flow_nodes/graph_generation.cpp
@@ -114,7 +114,9 @@ namespace FN { namespace DataFlowNodes {
 					continue;
 				}
 				bNodeSocket *origin = this->try_find_data_origin(target);
-				m_data_links.append(BSocketLink(origin, target, blink));
+				if (origin != nullptr) {
+					m_data_links.append(BSocketLink(origin, target, blink));
+				}
 			}
 		}



More information about the Bf-blender-cvs mailing list