Skip to content

Commit

Permalink
some restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
KatKatKateryna committed Jun 19, 2024
1 parent 4f624c5 commit 46314c3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,15 @@ public List<FieldDescription> GetFieldsFromSpeckleLayer(VectorLayer target)
foreach (var baseObj in target)
{
// get all members by default, but only Dynamic ones from the basic geometry
var members = baseObj.GetMembers(DynamicBaseMemberType.All);
Dictionary<string, object?> members = new();
if (baseObj.speckle_type.StartsWith("Objects.Geometry"))
{
members = baseObj.GetMembers(DynamicBaseMemberType.Dynamic);
}
else
{
members = baseObj.GetMembers(DynamicBaseMemberType.All);
}

foreach (KeyValuePair<string, object?> field in members)
{
Expand Down Expand Up @@ -152,6 +156,10 @@ List<string> fieldAdded
TraverseAttributes(newAttributField, functionAdded, fieldsAndFunctions, fieldAdded);
}
}
else
{
// for now, ignore all other properties of Base type
}
}
else if (field.Value is IList attributeList)
{
Expand Down

0 comments on commit 46314c3

Please sign in to comment.