Fix irrlicht error indent (#4676)
This commit is contained in:
parent
38425305a5
commit
6b022368cf
@ -611,8 +611,8 @@ u32 CGUIListBox::addItem(const wchar_t* text, s32 icon)
|
||||
|
||||
void CGUIListBox::setSpriteBank(IGUISpriteBank* bank)
|
||||
{
|
||||
if ( bank == IconBank )
|
||||
return;
|
||||
if ( bank == IconBank )
|
||||
return;
|
||||
if (IconBank)
|
||||
IconBank->drop();
|
||||
|
||||
|
@ -40,8 +40,8 @@ CGUIMeshViewer::~CGUIMeshViewer()
|
||||
//! sets the mesh to be shown
|
||||
void CGUIMeshViewer::setMesh(scene::IAnimatedMesh* mesh)
|
||||
{
|
||||
if (mesh)
|
||||
mesh->grab();
|
||||
if (mesh)
|
||||
mesh->grab();
|
||||
if (Mesh)
|
||||
Mesh->drop();
|
||||
|
||||
|
@ -1055,8 +1055,8 @@ void CGUITreeView::setIconFont( IGUIFont* font )
|
||||
{
|
||||
s32 height;
|
||||
|
||||
if ( font )
|
||||
font->grab();
|
||||
if ( font )
|
||||
font->grab();
|
||||
if ( IconFont )
|
||||
{
|
||||
IconFont->drop();
|
||||
@ -1077,8 +1077,8 @@ void CGUITreeView::setIconFont( IGUIFont* font )
|
||||
//! The default is 0 (no images).
|
||||
void CGUITreeView::setImageList( IGUIImageList* imageList )
|
||||
{
|
||||
if (imageList )
|
||||
imageList->grab();
|
||||
if (imageList )
|
||||
imageList->grab();
|
||||
if( ImageList )
|
||||
{
|
||||
ImageList->drop();
|
||||
|
@ -327,8 +327,8 @@ IRandomizer* CIrrDeviceStub::createDefaultRandomizer() const
|
||||
//! Sets the input receiving scene manager.
|
||||
void CIrrDeviceStub::setInputReceivingSceneManager(scene::ISceneManager* sceneManager)
|
||||
{
|
||||
if (sceneManager)
|
||||
sceneManager->grab();
|
||||
if (sceneManager)
|
||||
sceneManager->grab();
|
||||
if (InputReceivingSceneManager)
|
||||
InputReceivingSceneManager->drop();
|
||||
|
||||
|
@ -72,8 +72,8 @@ IParticleEmitter* CParticleSystemSceneNode::getEmitter()
|
||||
//! Sets the particle emitter, which creates the particles.
|
||||
void CParticleSystemSceneNode::setEmitter(IParticleEmitter* emitter)
|
||||
{
|
||||
if (emitter == Emitter)
|
||||
return;
|
||||
if (emitter == Emitter)
|
||||
return;
|
||||
if (Emitter)
|
||||
Emitter->drop();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user