Skip to content
This repository was archived by the owner on Aug 22, 2018. It is now read-only.

Commit a64fd96

Browse files
author
Nicolas Musset
committed
[Assets] Remove invalid check in EntityHierarchyCompilerBase: the SpriteProvider is a proxy object which is always empty.
1 parent 706e96b commit a64fd96

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sources/engine/SiliconStudio.Xenko.Assets/Entities/EntityHierarchyCompilerBase.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ protected override void Prepare(AssetCompilerContext context, AssetItem assetIte
4343
}
4444
}
4545

46-
var spriteComponent = entityData.Entity.Components.Get<SpriteComponent>();
47-
if (spriteComponent != null && spriteComponent.SpriteProvider.GetSprite() == null)
48-
{
49-
result.Warning($"The entity [{targetUrlInStorage}:{entityData.Entity.Name}] has a sprite component that does not reference any sprite group.");
50-
}
51-
5246
var nodeLinkComponent = entityData.Entity.Components.Get<ModelNodeLinkComponent>();
5347
if (nodeLinkComponent != null)
5448
{

0 commit comments

Comments
 (0)