Skip to content

Commit

Permalink
Attach Speckle Properties to instances
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-Morgan committed Aug 31, 2023
1 parent 892e77e commit 7c8f70c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,14 @@ public virtual Point PointToSpeckle(Vector3 p)
excludeProps.Add(alias);
}

excludeProps.Add("@Materials");
excludeProps.Add("@Views");
excludeProps.Add("renderMaterial");
excludeProps.Add("typedDefinition");
excludeProps.Add("definition");
excludeProps.Add("geometry");
excludeProps.Add("elements");
excludeProps.Add("transform");
excludeProps.Add("name");
//excludeProps.Add("tag");
excludeProps.Add("physicsLayer");
Expand Down Expand Up @@ -294,6 +300,9 @@ public GameObject InstanceToNative(Instance instance)
: defName;

native.name = instanceName;

AttachSpeckleProperties(native, instance.GetType(), () => GetProperties(instance));

return native;
}

Expand Down
2 changes: 1 addition & 1 deletion Packages/systems.speckle.speckle-unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "systems.speckle.speckle-unity",
"version": "2.15.1",
"version": "2.15.2",
"displayName": "Speckle Unity Connector",
"description": "AEC Interoperability for Unity through Speckle",
"unity": "2021.1",
Expand Down

0 comments on commit 7c8f70c

Please sign in to comment.