Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-11-20 06:11:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-11-20 06:29:50 +0300
commit8af3f531b1b7481edab6ec379f11694283ba9190 (patch)
tree03863b4b2228722bfd760e1d9e7fabd4a2191115 /source/blender/editors/manipulator_library
parent7f96323cd001bc7555d0f145027e3bbbbc1462b8 (diff)
Cleanup: BLI headers first
Also move descriptions into doxy header
Diffstat (limited to 'source/blender/editors/manipulator_library')
-rw-r--r--source/blender/editors/manipulator_library/manipulator_draw_utils.c4
-rw-r--r--source/blender/editors/manipulator_library/manipulator_library_presets.c13
-rw-r--r--source/blender/editors/manipulator_library/manipulator_library_utils.c6
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/arrow2d_manipulator.c12
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/arrow3d_manipulator.c10
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c16
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/cage3d_manipulator.c16
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/dial3d_manipulator.c22
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c22
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/primitive3d_manipulator.c10
10 files changed, 63 insertions, 68 deletions
diff --git a/source/blender/editors/manipulator_library/manipulator_draw_utils.c b/source/blender/editors/manipulator_library/manipulator_draw_utils.c
index f15cd9c9793..430841311aa 100644
--- a/source/blender/editors/manipulator_library/manipulator_draw_utils.c
+++ b/source/blender/editors/manipulator_library/manipulator_draw_utils.c
@@ -27,14 +27,14 @@
* \ingroup wm
*/
-#include "BKE_context.h"
-
#include "BLI_listbase.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_string_utils.h"
+#include "BKE_context.h"
+
#include "ED_screen.h"
#include "ED_view3d.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_library_presets.c b/source/blender/editors/manipulator_library/manipulator_library_presets.c
index e552a7a6aa3..7b8d2104992 100644
--- a/source/blender/editors/manipulator_library/manipulator_library_presets.c
+++ b/source/blender/editors/manipulator_library/manipulator_library_presets.c
@@ -26,17 +26,16 @@
* \brief Preset shapes that can be drawn from any manipulator type.
*/
-#include "BIF_gl.h"
-
-#include "BKE_context.h"
+#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "DNA_view3d_types.h"
#include "DNA_object_types.h"
-#include "ED_view3d.h"
-#include "ED_screen.h"
+#include "BKE_context.h"
+
+#include "BIF_gl.h"
#include "GPU_draw.h"
#include "GPU_immediate.h"
@@ -44,8 +43,6 @@
#include "GPU_matrix.h"
#include "GPU_select.h"
-#include "MEM_guardedalloc.h"
-
#include "DEG_depsgraph.h"
#include "RNA_access.h"
@@ -53,6 +50,8 @@
#include "WM_types.h"
#include "WM_api.h"
+#include "ED_view3d.h"
+#include "ED_screen.h"
/* own includes */
#include "ED_manipulator_library.h" /* own include */
diff --git a/source/blender/editors/manipulator_library/manipulator_library_utils.c b/source/blender/editors/manipulator_library/manipulator_library_utils.c
index fb1d1f89626..38b518b1992 100644
--- a/source/blender/editors/manipulator_library/manipulator_library_utils.c
+++ b/source/blender/editors/manipulator_library/manipulator_library_utils.c
@@ -31,21 +31,21 @@
* \brief This file contains functions for common behaviors of manipulators.
*/
-#include "BKE_context.h"
-
#include "BLI_math.h"
#include "BLI_listbase.h"
#include "DNA_view3d_types.h"
#include "DNA_screen_types.h"
-#include "ED_view3d.h"
+#include "BKE_context.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
+#include "ED_view3d.h"
+
/* own includes */
#include "manipulator_library_intern.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_types/arrow2d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/arrow2d_manipulator.c
index 44dd5698a48..749e92e25fb 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/arrow2d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/arrow2d_manipulator.c
@@ -31,18 +31,15 @@
* \brief Simple arrow manipulator which is dragged into a certain direction.
*/
-#include "BIF_gl.h"
-
-#include "BKE_context.h"
-
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "DNA_windowmanager_types.h"
-#include "ED_screen.h"
-#include "ED_manipulator_library.h"
+#include "BKE_context.h"
+
+#include "BIF_gl.h"
#include "GPU_draw.h"
#include "GPU_immediate.h"
@@ -55,6 +52,9 @@
#include "WM_types.h"
+#include "ED_screen.h"
+#include "ED_manipulator_library.h"
+
/* own includes */
#include "WM_api.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_types/arrow3d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/arrow3d_manipulator.c
index 3bbcafb925a..e9760e3e270 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/arrow3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/arrow3d_manipulator.c
@@ -40,15 +40,11 @@
#include "BIF_gl.h"
-#include "BKE_context.h"
-
#include "BLI_math.h"
#include "DNA_view3d_types.h"
-#include "ED_view3d.h"
-#include "ED_screen.h"
-#include "ED_manipulator_library.h"
+#include "BKE_context.h"
#include "GPU_draw.h"
#include "GPU_immediate.h"
@@ -64,6 +60,10 @@
#include "WM_types.h"
#include "WM_api.h"
+#include "ED_view3d.h"
+#include "ED_screen.h"
+#include "ED_manipulator_library.h"
+
/* own includes */
#include "../manipulator_geometry.h"
#include "../manipulator_library_intern.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
index d1902864d57..0299a33d0fe 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
@@ -34,17 +34,15 @@
* Interacting scales or translates the manipulator.
*/
-#include "BIF_gl.h"
-
-#include "BKE_context.h"
+#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_dial.h"
#include "BLI_rect.h"
-#include "ED_screen.h"
-#include "ED_view3d.h"
-#include "ED_manipulator_library.h"
+#include "BKE_context.h"
+
+#include "BIF_gl.h"
#include "GPU_matrix.h"
#include "GPU_shader.h"
@@ -52,14 +50,16 @@
#include "GPU_immediate_util.h"
#include "GPU_select.h"
-#include "MEM_guardedalloc.h"
-
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
+#include "ED_screen.h"
+#include "ED_view3d.h"
+#include "ED_manipulator_library.h"
+
/* own includes */
#include "../manipulator_library_intern.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_types/cage3d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/cage3d_manipulator.c
index e116a26fd59..d58cdb4b187 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/cage3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/cage3d_manipulator.c
@@ -34,17 +34,15 @@
* Interacting scales or translates the manipulator.
*/
-#include "BIF_gl.h"
-
-#include "BKE_context.h"
+#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_dial.h"
#include "BLI_rect.h"
-#include "ED_screen.h"
-#include "ED_view3d.h"
-#include "ED_manipulator_library.h"
+#include "BKE_context.h"
+
+#include "BIF_gl.h"
#include "GPU_matrix.h"
#include "GPU_shader.h"
@@ -52,14 +50,16 @@
#include "GPU_immediate_util.h"
#include "GPU_select.h"
-#include "MEM_guardedalloc.h"
-
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
+#include "ED_screen.h"
+#include "ED_view3d.h"
+#include "ED_manipulator_library.h"
+
/* own includes */
#include "../manipulator_library_intern.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_types/dial3d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/dial3d_manipulator.c
index ec490a0d047..f2f5851ff0c 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/dial3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/dial3d_manipulator.c
@@ -38,25 +38,19 @@
* - `matrix[2]` is the axis the dial rotates around (all dials).
*/
-#include "BIF_gl.h"
-#include "BIF_glutil.h"
-
-#include "BKE_context.h"
+#include "MEM_guardedalloc.h"
#include "BLI_math.h"
-#include "ED_screen.h"
-#include "ED_view3d.h"
-#include "ED_manipulator_library.h"
-
-#include "GPU_select.h"
+#include "BKE_context.h"
-#include "GPU_matrix.h"
+#include "BIF_gl.h"
+#include "BIF_glutil.h"
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
-
-#include "MEM_guardedalloc.h"
+#include "GPU_matrix.h"
+#include "GPU_select.h"
#include "RNA_access.h"
#include "RNA_define.h"
@@ -64,6 +58,10 @@
#include "WM_api.h"
#include "WM_types.h"
+#include "ED_screen.h"
+#include "ED_view3d.h"
+#include "ED_manipulator_library.h"
+
/* own includes */
#include "../manipulator_geometry.h"
#include "../manipulator_library_intern.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
index 5353104a1fd..151e173e5e6 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
@@ -33,25 +33,19 @@
*
*/
-#include "BIF_gl.h"
-#include "BIF_glutil.h"
-
-#include "BKE_context.h"
+#include "MEM_guardedalloc.h"
#include "BLI_math.h"
-#include "ED_screen.h"
-#include "ED_view3d.h"
-#include "ED_manipulator_library.h"
-
-#include "GPU_select.h"
+#include "BKE_context.h"
-#include "GPU_matrix.h"
+#include "BIF_gl.h"
+#include "BIF_glutil.h"
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
-
-#include "MEM_guardedalloc.h"
+#include "GPU_matrix.h"
+#include "GPU_select.h"
#include "RNA_access.h"
#include "RNA_define.h"
@@ -59,6 +53,10 @@
#include "WM_api.h"
#include "WM_types.h"
+#include "ED_screen.h"
+#include "ED_view3d.h"
+#include "ED_manipulator_library.h"
+
/* own includes */
#include "../manipulator_geometry.h"
#include "../manipulator_library_intern.h"
diff --git a/source/blender/editors/manipulator_library/manipulator_types/primitive3d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/primitive3d_manipulator.c
index eea14f2033f..531cf742e6f 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/primitive3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/primitive3d_manipulator.c
@@ -29,20 +29,20 @@
* Currently only plane primitive supported without own handling, use with operator only.
*/
-#include "BIF_gl.h"
-
-#include "BKE_context.h"
+#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "DNA_view3d_types.h"
+#include "BKE_context.h"
+
+#include "BIF_gl.h"
+
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "GPU_select.h"
-#include "MEM_guardedalloc.h"
-
#include "RNA_access.h"
#include "RNA_define.h"