From 05d8af2b9fd09ee59f32f8908a1e1c839a1690c0 Mon Sep 17 00:00:00 2001 From: Kike Garcia Date: Tue, 14 May 2024 21:10:31 +0200 Subject: [PATCH] Update ZuiComponent.cs --- src/RhinoInside.Revit.GH/Components/ZuiComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RhinoInside.Revit.GH/Components/ZuiComponent.cs b/src/RhinoInside.Revit.GH/Components/ZuiComponent.cs index 94be3bb12..e40920f61 100644 --- a/src/RhinoInside.Revit.GH/Components/ZuiComponent.cs +++ b/src/RhinoInside.Revit.GH/Components/ZuiComponent.cs @@ -909,7 +909,7 @@ public override void AddedToDocument(GH_Document document) var inputType = input.Param.GetType(); if (inputType != param.GetType() && param.CreateSurrogate(inputType) is IGH_Param surrogate) { - GH_UpgradeUtil.MigrateRecipients(param, surrogate); + GH_UpgradeUtil.MigrateSources(param, surrogate); Params.UnregisterInputParameter(param); Params.RegisterInputParam(surrogate, index); param = surrogate; @@ -934,7 +934,7 @@ public override void AddedToDocument(GH_Document document) var outputType = output.Param.GetType(); if (outputType != param.GetType() && param.CreateSurrogate(outputType) is IGH_Param surrogate) { - GH_UpgradeUtil.MigrateSources(param, surrogate); + GH_UpgradeUtil.MigrateRecipients(param, surrogate); Params.UnregisterOutputParameter(param); Params.RegisterOutputParam(surrogate, index); param = surrogate;