Skip to content

Commit

Permalink
Update ZuiComponent.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kike-garbo authored May 14, 2024
1 parent e7be5ca commit 05d8af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RhinoInside.Revit.GH/Components/ZuiComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 05d8af2

Please sign in to comment.