Skip to content

Commit

Permalink
Merge pull request #98 from specklesystems/jrm/converter/convert-spec…
Browse files Browse the repository at this point in the history
…kle-properties-on-instances

Attach Speckle Properties to instances
  • Loading branch information
JR-Morgan authored Aug 31, 2023
2 parents f0be788 + 7c8f70c commit 106d4c8
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 106d4c8

Please sign in to comment.