Never search for sprites unless it's explicitly requested.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2017-03-21 15:36:41 -03:00
parent 8d1535fa62
commit d1edfcf705

View File

@@ -69,18 +69,6 @@ Drawable * DrawableSearcher::searchById( const Uint32& id ) {
drawable = TextureFactory::instance()->getByHash( id );
}
if ( NULL == drawable ) {
std::vector<SubTexture*> tSubTextureVec = TextureAtlasManager::instance()->getSubTexturesByPatternId( id );
if ( tSubTextureVec.size() ) {
Sprite * tSprite = eeNew( Graphics::Sprite, () );
tSprite->createAnimation();
tSprite->addFrames( tSubTextureVec );
drawable = tSprite;
}
}
if ( NULL == drawable && sPrintWarnings )
eePRINTL( "DrawableSearcher::searchById: \"%ld\" not found", id );