Skip to content

Commit 811097d

Browse files
Fixes bug whereby pulling a MeshSettings1D with div = 1 returns an error (#406)
2 parents 38d5549 + 0752fdf commit 811097d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lusas_Adapter/Convert/ToBHoM/Properties/ToMeshSettings1D.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static MeshSettings1D ToMeshSettings1D(this IFAttribute lusasAttrbute)
5959
else if (meshType == 1)
6060
{
6161
splitMethod = Split1D.Divisions;
62-
object[] ratios = lusasMeshLine.getValue("ratio");
62+
object[] ratios = lusasMeshLine.getMeshDivisions(0);
6363
value = ratios.Count();
6464
if (value == 0)
6565
value = 4;

0 commit comments

Comments
 (0)