Skip to content

Commit

Permalink
[Rendering] Fixed case when instancing type is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
tebjan committed Jul 16, 2020
1 parent 625db95 commit b31177d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ public override void Draw(RenderContext context)
// Process the components
Dispatcher.ForEach(ComponentDatas, entity =>
{
UpdateInstancingDataMany(entity.Key, entity.Value);
UpdateInstancing(entity.Key, entity.Value);
});
}

private void UpdateInstancingDataMany(InstancingComponent instancingComponent, InstancingData instancingData)
private void UpdateInstancing(InstancingComponent instancingComponent, InstancingData instancingData)
{
if (instancingComponent.Enabled)
if (instancingComponent.Enabled && instancingComponent.Type != null)
{
var instancing = instancingComponent.Type;

Expand Down

0 comments on commit b31177d

Please sign in to comment.