File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,13 +51,19 @@ public override void Update()
5151 continue ;
5252 }
5353
54- var childNodeIndex = FindChildPlayableNode ( inputPlayable ) ;
55- if ( childNodeIndex >= 0 )
54+ // FIXME: A Playable may has multi output ports,
55+ // and if all these output ports connected to same input port,
56+ // 'i' will be greater than InternalInputs.Count, so there is a check.
57+ if ( i < InternalInputs . Count )
5658 {
57- var input = InternalInputs [ i ] ;
58- input . Node . AddFlag ( NodeFlag . Active ) ;
59- InternalInputs [ i ] = input . Copy ( input , i ) ;
60- continue ;
59+ var childNodeIndex = FindChildPlayableNode ( inputPlayable ) ;
60+ if ( childNodeIndex >= 0 )
61+ {
62+ var input = InternalInputs [ i ] ;
63+ input . Node . AddFlag ( NodeFlag . Active ) ;
64+ InternalInputs [ i ] = input . Copy ( input , i ) ;
65+ continue ;
66+ }
6167 }
6268
6369 // create new node
@@ -161,10 +167,11 @@ protected override void AppendStateDescriptions(StringBuilder descBuilder)
161167 descBuilder . Append ( "#" ) . Append ( i . ToString ( ) ) . Append ( " InputWeight: " )
162168 . AppendLine ( Playable . GetInputWeight ( i ) . ToString ( "F3" ) ) ;
163169 }
170+
164171 descBuilder . Append ( "OutputCount: " ) . AppendLine ( Playable . GetOutputCount ( ) . ToString ( ) ) ;
165172 }
166173 }
167174
168175 #endregion
169176 }
170- }
177+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " com.greenbamboogames.playablegraphmonitor" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "displayName" : " PlayableGraphMonitor!" ,
55 "description" : " PlayableGraph monitor." ,
66 "unity" : " 2019.4" ,
You can’t perform that action at this time.
0 commit comments