Build fix (C90): Declaration after statement
authorMartin Poirier <theeth@yahoo.com>
Thu, 30 Oct 2008 16:38:32 +0000 (16:38 +0000)
committerMartin Poirier <theeth@yahoo.com>
Thu, 30 Oct 2008 16:38:32 +0000 (16:38 +0000)
source/blender/src/buttons_editing.c

index f362fa815ce58a7c85fc46cb2481dcc63288cfd6..6cbf14d47fb7dbce901e156c415d618cad4c7bb2 100644 (file)
@@ -5853,8 +5853,10 @@ void sculptmode_draw_interface_textures(uiBlock *block, unsigned short cx, unsig
                uiBlockBeginAlign(block);
                uiDefBut(block,LABEL,B_NOP,"",cx,cy,115,20,0,0,0,0,0,""); /* Padding */
        } else {
+               ID *id = NULL;
+
                mtex= sd->mtex[sd->texact];
-               ID *id= NULL;
+
                uiBlockBeginAlign(block);
                
                if(mtex && mtex->tex) id= &mtex->tex->id;