File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Assets/com.alelievr.NodeGraphProcessor/Runtime/Elements Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ public static BaseNode CreateFromType(Type nodeType, Vector2 position)
190
190
public void Initialize ( BaseGraph graph )
191
191
{
192
192
this . graph = graph ;
193
- InitializeCustomPortTypeMethods ( ) ;
194
193
195
194
ExceptionToLog . Call ( ( ) => Enable ( ) ) ;
196
195
@@ -199,11 +198,6 @@ public void Initialize(BaseGraph graph)
199
198
200
199
void InitializeCustomPortTypeMethods ( )
201
200
{
202
- // var methods = GetType().GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy);
203
-
204
- // if (GetType().Name.Contains("Distance"))
205
- // Debug.Log(GetType().GetMethod("GetTypeFromTextureDim", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy));
206
-
207
201
MethodInfo [ ] methods = new MethodInfo [ 0 ] ;
208
202
Type baseType = GetType ( ) ;
209
203
while ( true )
@@ -243,6 +237,8 @@ void InitializeCustomPortTypeMethods()
243
237
/// </summary>
244
238
public virtual void InitializePorts ( )
245
239
{
240
+ InitializeCustomPortTypeMethods ( ) ;
241
+
246
242
foreach ( var nodeFieldKP in nodeFields . ToList ( ) . OrderByDescending ( kp => kp . Value . info . MetadataToken ) )
247
243
{
248
244
var nodeField = nodeFieldKP . Value ;
You can’t perform that action at this time.
0 commit comments