Skip to content

Commit

Permalink
Allow null or empty on joints param
Browse files Browse the repository at this point in the history
  • Loading branch information
visose committed May 14, 2022
1 parent a643268 commit 1448bda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Robots.Grasshopper/Goos/GH_Joints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public override bool CastFrom(object source)
return true;
case GH_String text:
{
if(string.IsNullOrWhiteSpace(text.Value))
{
Value = new double[0];
return true;
}

string[] texts = text.Value.Split(',');
double[] values = new double[texts.Length];

Expand Down

0 comments on commit 1448bda

Please sign in to comment.