Skip to content

Commit

Permalink
[Assets.Presentation] Only pick instance if InstancingComponent is en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
tebjan committed Jul 16, 2020
1 parent ca68fb7 commit a2218c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ private async Task Execute()

// Check for instancing
var instancingComponent = entityUnderMouse?.Get<InstancingComponent>();
if (instancingComponent != null && instancingComponent.Type is InstancingEntityTransform instancing)
if (instancingComponent != null && instancingComponent.Enabled && instancingComponent.Type is InstancingEntityTransform instancing)
{
entityUnderMouse = instancing.GetInstanceAt(entityPicked.InstanceId)?.Entity ?? entityUnderMouse;
}
Expand Down

0 comments on commit a2218c1

Please sign in to comment.