Skip to content

Commit

Permalink
Fix #271.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeough committed Apr 14, 2020
1 parent 153b80f commit 2dbe790
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.0
### Fixed
- #271

## 0.6.2
### Added
- `Material.Unlit`
Expand Down
4 changes: 3 additions & 1 deletion src/Elements/ElementInstance.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Elements.Geometry;
using Newtonsoft.Json;

namespace Elements
{
Expand Down Expand Up @@ -30,7 +31,8 @@ public class ElementInstance : Element
/// <param name="transform">The transform of the instance.</param>
/// <param name="name">The name of the instance.</param>
/// <param name="id">The id of the instance.</param>
public ElementInstance(GeometricElement baseDefinition,
[JsonConstructor]
internal ElementInstance(GeometricElement baseDefinition,
Transform transform,
string name = null,
Guid id = default(Guid)) : base(id == default(Guid) ? Guid.NewGuid() : id, name)
Expand Down

0 comments on commit 2dbe790

Please sign in to comment.