mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-20 17:52:50 +03:00
Never search for sprites unless it's explicitly requested.
--HG-- branch : dev
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user