diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-09 08:06:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-09 08:06:48 +0400 |
commit | 5a2a3d7d82933be392d8a24937b230b2ab4d7af7 (patch) | |
tree | bff60a2b1c14afb3917ff66e0e1354052a411208 /source/blender/editors | |
parent | 14a2330d7b4edbb294b77072f99283cdd0fa6bae (diff) |
more syncing with trunk, also cleared many warnings with gcc4.6
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/armature/meshlaplacian.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/bmesh_select.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/bmesh_tools.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/bmeshutils.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/editbmesh_add.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/editbmesh_bvh.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/editface.c | 1 | ||||
-rwxr-xr-x | source/blender/editors/mesh/knifetool.c | 1 | ||||
-rw-r--r-- | source/blender/editors/mesh/mesh_data.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_image/image_header.c | 92 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/drawmesh.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/drawvolume.c | 1 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_unwrap_ops.c | 1 |
14 files changed, 13 insertions, 98 deletions
diff --git a/source/blender/editors/armature/meshlaplacian.c b/source/blender/editors/armature/meshlaplacian.c index 2c40705b3ac..41733bcd29a 100644 --- a/source/blender/editors/armature/meshlaplacian.c +++ b/source/blender/editors/armature/meshlaplacian.c @@ -43,10 +43,10 @@ #include "DNA_meshdata_types.h" #include "DNA_scene_types.h" +#include "BLI_utildefines.h" #include "BLI_math.h" #include "BLI_edgehash.h" #include "BLI_memarena.h" -#include "BLI_utildefines.h" #include "BKE_DerivedMesh.h" #include "BKE_modifier.h" diff --git a/source/blender/editors/mesh/bmesh_select.c b/source/blender/editors/mesh/bmesh_select.c index e0c0215bc2b..d9485672492 100644 --- a/source/blender/editors/mesh/bmesh_select.c +++ b/source/blender/editors/mesh/bmesh_select.c @@ -50,6 +50,7 @@ BMEditMesh_mods.c, UI level access, no geometry changes #include "DNA_space_types.h" #include "DNA_view3d_types.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_rand.h" @@ -65,7 +66,6 @@ BMEditMesh_mods.c, UI level access, no geometry changes #include "BKE_mesh.h" #include "BKE_material.h" #include "BKE_texture.h" -#include "BKE_utildefines.h" #include "BKE_report.h" #include "BKE_tessmesh.h" #include "BKE_paint.h" diff --git a/source/blender/editors/mesh/bmesh_tools.c b/source/blender/editors/mesh/bmesh_tools.c index e99066c1d91..93b4fabe80f 100644 --- a/source/blender/editors/mesh/bmesh_tools.c +++ b/source/blender/editors/mesh/bmesh_tools.c @@ -51,6 +51,7 @@ #include "RNA_define.h" #include "RNA_access.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_editVert.h" @@ -71,7 +72,6 @@ #include "BKE_library.h" #include "BKE_mesh.h" #include "BKE_object.h" -#include "BKE_utildefines.h" #include "BKE_bmesh.h" #include "BKE_report.h" #include "BKE_tessmesh.h" diff --git a/source/blender/editors/mesh/bmeshutils.c b/source/blender/editors/mesh/bmeshutils.c index 06ebf1e9df0..228a887a63c 100644 --- a/source/blender/editors/mesh/bmeshutils.c +++ b/source/blender/editors/mesh/bmeshutils.c @@ -51,6 +51,7 @@ #include "RNA_define.h" #include "RNA_access.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_editVert.h" @@ -68,7 +69,6 @@ #include "BKE_key.h" #include "BKE_mesh.h" #include "BKE_object.h" -#include "BKE_utildefines.h" #include "BKE_bmesh.h" #include "BKE_report.h" #include "BKE_tessmesh.h" diff --git a/source/blender/editors/mesh/editbmesh_add.c b/source/blender/editors/mesh/editbmesh_add.c index dfb242d7144..7093a6e3298 100644 --- a/source/blender/editors/mesh/editbmesh_add.c +++ b/source/blender/editors/mesh/editbmesh_add.c @@ -51,6 +51,7 @@ #include "RNA_define.h" #include "RNA_access.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_editVert.h" @@ -67,7 +68,6 @@ #include "BKE_library.h" #include "BKE_mesh.h" #include "BKE_object.h" -#include "BKE_utildefines.h" #include "BKE_bmesh.h" #include "BKE_report.h" #include "BKE_tessmesh.h" diff --git a/source/blender/editors/mesh/editbmesh_bvh.c b/source/blender/editors/mesh/editbmesh_bvh.c index d7ab294d877..52e3d1bde6d 100644 --- a/source/blender/editors/mesh/editbmesh_bvh.c +++ b/source/blender/editors/mesh/editbmesh_bvh.c @@ -53,6 +53,7 @@ #include "RNA_define.h" #include "RNA_access.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_editVert.h" @@ -70,7 +71,6 @@ #include "BKE_library.h" #include "BKE_mesh.h" #include "BKE_object.h" -#include "BKE_utildefines.h" #include "BKE_bmesh.h" #include "BKE_report.h" #include "BKE_tessmesh.h" diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c index 06eb1f1ead4..5a03d283aea 100644 --- a/source/blender/editors/mesh/editface.c +++ b/source/blender/editors/mesh/editface.c @@ -36,6 +36,7 @@ #include "MEM_guardedalloc.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_heap.h" diff --git a/source/blender/editors/mesh/knifetool.c b/source/blender/editors/mesh/knifetool.c index 73bb49d7667..52d169ee3cb 100755 --- a/source/blender/editors/mesh/knifetool.c +++ b/source/blender/editors/mesh/knifetool.c @@ -44,6 +44,7 @@ #include "PIL_time.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_dynstr.h" /*for WM_operator_pystring */ #include "BLI_editVert.h" diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c index b6c6570e27d..bdfbc488a06 100644 --- a/source/blender/editors/mesh/mesh_data.c +++ b/source/blender/editors/mesh/mesh_data.c @@ -43,6 +43,7 @@ #include "DNA_scene_types.h" #include "DNA_view3d_types.h" +#include "BLI_utildefines.h" #include "BLI_math.h" #include "BLI_editVert.h" #include "BLI_edgehash.h" diff --git a/source/blender/editors/space_image/image_header.c b/source/blender/editors/space_image/image_header.c deleted file mode 100644 index 92e829c0dbb..00000000000 --- a/source/blender/editors/space_image/image_header.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * $Id$ - * - * ***** BEGIN GPL LICENSE BLOCK ***** - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * The Original Code is Copyright (C) 2008 Blender Foundation. - * All rights reserved. - * - * - * Contributor(s): Blender Foundation - * - * ***** END GPL LICENSE BLOCK ***** - */ - -/** \file blender/editors/space_image/image_header.c - * \ingroup spimage - */ - - -#include <string.h> -#include <stdio.h> - -#include "DNA_object_types.h" -#include "DNA_space_types.h" -#include "DNA_windowmanager_types.h" - -#include "BLI_blenlib.h" -#include "BLI_editVert.h" -#include "BLI_utildefines.h" - -#include "BKE_context.h" -#include "BKE_mesh.h" - -#include "ED_image.h" - -#include "WM_types.h" - -#include "UI_interface.h" -#include "UI_resources.h" - -#include "image_intern.h" - -/********************** toolbox operator *********************/ - -static int toolbox_invoke(bContext *C, wmOperator *UNUSED(op), wmEvent *UNUSED(event)) -{ - SpaceImage *sima= CTX_wm_space_image(C); - Object *obedit= CTX_data_edit_object(C); - uiPopupMenu *pup; - uiLayout *layout; - int show_uvedit; - - show_uvedit= ED_space_image_show_uvedit(sima, obedit); - - pup= uiPupMenuBegin(C, "Toolbox", ICON_NONE); - layout= uiPupMenuLayout(pup); - - uiItemM(layout, C, "IMAGE_MT_view", NULL, ICON_NONE); - if(show_uvedit) uiItemM(layout, C, "IMAGE_MT_select", NULL, ICON_NONE); - uiItemM(layout, C, "IMAGE_MT_image", NULL, ICON_NONE); - if(show_uvedit) uiItemM(layout, C, "IMAGE_MT_uvs", NULL, ICON_NONE); - - uiPupMenuEnd(C, pup); - - return OPERATOR_CANCELLED; -} - -void IMAGE_OT_toolbox(wmOperatorType *ot) -{ - /* identifiers */ - ot->name= "Toolbox"; - ot->idname= "IMAGE_OT_toolbox"; - - /* api callbacks */ - ot->invoke= toolbox_invoke; - ot->poll= space_image_main_area_poll; -} - diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c index 66137520a06..1d1c9f10e75 100644 --- a/source/blender/editors/space_view3d/drawmesh.c +++ b/source/blender/editors/space_view3d/drawmesh.c @@ -35,6 +35,7 @@ #include "MEM_guardedalloc.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_edgehash.h" diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 6b042b22d74..a317eb3288f 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -47,6 +47,7 @@ #include "DNA_smoke_types.h" #include "DNA_world_types.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_editVert.h" diff --git a/source/blender/editors/space_view3d/drawvolume.c b/source/blender/editors/space_view3d/drawvolume.c index acdbcb0d06d..805887e3805 100644 --- a/source/blender/editors/space_view3d/drawvolume.c +++ b/source/blender/editors/space_view3d/drawvolume.c @@ -40,6 +40,7 @@ #include "DNA_screen_types.h" #include "DNA_view3d_types.h" +#include "BLI_utildefines.h" #include "BLI_blenlib.h" #include "BLI_math.h" #include "BLI_editVert.h" diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c index e6672339cdc..3fc53174447 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c @@ -43,6 +43,7 @@ #include "DNA_object_types.h" #include "DNA_scene_types.h" +#include "BLI_utildefines.h" #include "BLI_math.h" #include "BLI_edgehash.h" #include "BLI_editVert.h" |