Skip to content

Commit 61dcd38

Browse files
committed
Fixed issues with relay node
1 parent e583005 commit 61dcd38

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Views/RelayNodeView.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ void UpdateSize()
8383
int inputEdgeCount = relay.GetNonRelayEdges().Count + 1;
8484
style.height = Mathf.Max(30, 24 * inputEdgeCount + 5);
8585
style.width = -1;
86-
input.style.height = -1;
86+
if (input != null)
87+
input.style.height = -1;
8788
if (output != null)
8889
output.style.height = -1;
8990
RemoveFromClassList("hideLabels");
@@ -92,7 +93,8 @@ void UpdateSize()
9293
{
9394
style.height = 20;
9495
style.width = 50;
95-
input.style.height = 16;
96+
if (input != null)
97+
input.style.height = 16;
9698
if (output != null)
9799
output.style.height = 16;
98100
AddToClassList("hideLabels");

Assets/com.alelievr.NodeGraphProcessor/Runtime/Elements/RelayNode.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public void PushOutputs(List< SerializableEdge > edges, NodePort outputPort)
7171

7272
if (outputPort.portData.identifier != packIdentifier && outputIndex >= 0 && (unpackOutput || inputPortEdges.Count == 1))
7373
{
74+
if (output.values == null)
75+
return;
76+
7477
// When we unpack the output, there is one port per type of data in output
7578
// That means that this function will be called the same number of time than the output port count
7679
// Thus we use a class field to keep the index.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [1.1.1]
8+
9+
### Fixed
10+
- Fixed issues with relay node
11+
712
## [1.1.0]
813

914
### Added

0 commit comments

Comments
 (0)