[Bf-blender-cvs] [f148e26e170] transform_refactor: Cleanup: Remove unused includes
mano-wii
noreply at git.blender.org
Sun Sep 15 02:37:52 CEST 2019
Commit: f148e26e170b3a65f547cf79344b417ab203d770
Author: mano-wii
Date: Sat Sep 14 21:37:44 2019 -0300
Branches: transform_refactor
https://developer.blender.org/rBf148e26e170b3a65f547cf79344b417ab203d770
Cleanup: Remove unused includes
===================================================================
M source/blender/editors/transform/transform_op.h
M source/blender/editors/transform/transform_ops/transform_op.c
M source/blender/editors/transform/transform_ops/transform_op_mode.c
M source/blender/editors/transform/transform_ops/transform_op_mode_align.c
M source/blender/editors/transform/transform_ops/transform_op_mode_baketime.c
M source/blender/editors/transform/transform_ops/transform_op_mode_bend.c
M source/blender/editors/transform/transform_ops/transform_op_mode_boneenvelope.c
M source/blender/editors/transform/transform_ops/transform_op_mode_boneroll.c
M source/blender/editors/transform/transform_ops/transform_op_mode_bonesize.c
M source/blender/editors/transform/transform_ops/transform_op_mode_curveshrinkfatten.c
M source/blender/editors/transform/transform_ops/transform_op_mode_edge_bevelweight.c
M source/blender/editors/transform/transform_ops/transform_op_mode_edge_crease.c
M source/blender/editors/transform/transform_ops/transform_op_mode_edge_rotate_normal.c
M source/blender/editors/transform/transform_ops/transform_op_mode_edge_seq_slide.c
M source/blender/editors/transform/transform_ops/transform_op_mode_edge_slide.c
M source/blender/editors/transform/transform_ops/transform_op_mode_gpopacity.c
M source/blender/editors/transform/transform_ops/transform_op_mode_gpshrinkfatten.c
M source/blender/editors/transform/transform_ops/transform_op_mode_maskshrinkfatten.c
M source/blender/editors/transform/transform_ops/transform_op_mode_mirror.c
M source/blender/editors/transform/transform_ops/transform_op_mode_push_pull.c
M source/blender/editors/transform/transform_ops/transform_op_mode_resize.c
M source/blender/editors/transform/transform_ops/transform_op_mode_rotate.c
M source/blender/editors/transform/transform_ops/transform_op_mode_shear.c
M source/blender/editors/transform/transform_ops/transform_op_mode_shrink_fatten.c
M source/blender/editors/transform/transform_ops/transform_op_mode_skin_resize.c
M source/blender/editors/transform/transform_ops/transform_op_mode_tilt.c
===================================================================
diff --git a/source/blender/editors/transform/transform_op.h b/source/blender/editors/transform/transform_op.h
index 80b820c40fd..2d027273295 100644
--- a/source/blender/editors/transform/transform_op.h
+++ b/source/blender/editors/transform/transform_op.h
@@ -74,11 +74,11 @@ enum {
/* transform_op.c */
extern const float VecOne[3];
-int transform_modal(bContext *C, wmOperator *op, const wmEvent *event);
-void transform_cancel(bContext *C, wmOperator *op);
-int transform_exec(bContext *C, wmOperator *op);
-int transform_invoke(bContext *C, wmOperator *op, const wmEvent *event);
-bool transform_poll_property(const bContext *C, wmOperator *op, const PropertyRNA *prop);
+int transform_modal(bContext *C, struct wmOperator *op, const struct wmEvent *event);
+void transform_cancel(bContext *C, struct wmOperator *op);
+int transform_exec(bContext *C, struct wmOperator *op);
+int transform_invoke(bContext *C, struct wmOperator *op, const struct wmEvent *event);
+bool transform_poll_property(const bContext *C, struct wmOperator *op, const PropertyRNA *prop);
/* transform_op_mode.c */
void postInputRotation(TransInfo *t, float values[3]);
@@ -115,7 +115,7 @@ void initBakeTime(TransInfo *t);
/* transform_op_mode_bend.c */
extern const char OP_BEND[];
void initBend(TransInfo *t);
-void TRANSFORM_OT_bend(wmOperatorType *ot);
+void TRANSFORM_OT_bend(struct wmOperatorType *ot);
/* transform_op_mode_boneenvelope.c */
void initBoneEnvelope(TransInfo *t);
@@ -132,22 +132,22 @@ void initCurveShrinkFatten(TransInfo *t);
/* transform_op_mode_edge_bevelweight.c */
extern const char OP_EDGE_BWEIGHT[];
void initBevelWeight(TransInfo *t);
-void TRANSFORM_OT_edge_bevelweight(wmOperatorType *ot);
+void TRANSFORM_OT_edge_bevelweight(struct wmOperatorType *ot);
/* transform_op_mode_edge_crease.c */
extern const char OP_EDGE_CREASE[];
void initCrease(TransInfo *t);
-void TRANSFORM_OT_edge_crease(wmOperatorType *ot);
+void TRANSFORM_OT_edge_crease(struct wmOperatorType *ot);
/* transform_op_mode_edge_rotate_normal.c */
extern const char OP_NORMAL_ROTATION[];
void initNormalRotation(TransInfo *t);
-void TRANSFORM_OT_rotate_normal(wmOperatorType *ot);
+void TRANSFORM_OT_rotate_normal(struct wmOperatorType *ot);
/* transform_op_mode_edge_seq_slide.c */
extern const char OP_SEQ_SLIDE[];
void initSeqSlide(TransInfo *t);
-void TRANSFORM_OT_seq_slide(wmOperatorType *ot);
+void TRANSFORM_OT_seq_slide(struct wmOperatorType *ot);
/* transform_op_mode_edge_slide.c */
extern const char OP_EDGE_SLIDE[];
@@ -156,7 +156,7 @@ void doEdgeSlide(TransInfo *t, float perc);
void initEdgeSlide_ex(
TransInfo *t, bool use_double_side, bool use_even, bool flipped, bool use_clamp);
void initEdgeSlide(TransInfo *t);
-void TRANSFORM_OT_edge_slide(wmOperatorType *ot);
+void TRANSFORM_OT_edge_slide(struct wmOperatorType *ot);
/* transform_op_mode_gpopacity.c */
void initGPOpacity(TransInfo *t);
@@ -170,42 +170,42 @@ void initMaskShrinkFatten(TransInfo *t);
/* transform_op_mode_mirror.c */
extern const char OP_MIRROR[];
void initMirror(TransInfo *t);
-void TRANSFORM_OT_mirror(wmOperatorType *ot);
+void TRANSFORM_OT_mirror(struct wmOperatorType *ot);
/* transform_op_mode_push_pull.c */
extern const char OP_PUSH_PULL[];
void initPushPull(TransInfo *t);
-void TRANSFORM_OT_push_pull(wmOperatorType *ot);
+void TRANSFORM_OT_push_pull(struct wmOperatorType *ot);
/* transform_op_mode_resize.c */
extern const char OP_RESIZE[];
void initResize(TransInfo *t);
-void TRANSFORM_OT_resize(wmOperatorType *ot);
+void TRANSFORM_OT_resize(struct wmOperatorType *ot);
/* transform_op_mode_rotate.c */
extern const char OP_ROTATION[];
void initRotation(TransInfo *t);
-void TRANSFORM_OT_rotate(wmOperatorType *ot);
+void TRANSFORM_OT_rotate(struct wmOperatorType *ot);
/* transform_op_mode_shear.c */
extern const char OP_SHEAR[];
void initShear(TransInfo *t);
-void TRANSFORM_OT_shear(wmOperatorType *ot);
+void TRANSFORM_OT_shear(struct wmOperatorType *ot);
/* transform_op_mode_shrink_fatten.c */
extern const char OP_SHRINK_FATTEN[];
void initShrinkFatten(TransInfo *t);
-void TRANSFORM_OT_shrink_fatten(wmOperatorType *ot);
+void TRANSFORM_OT_shrink_fatten(struct wmOperatorType *ot);
/* transform_op_mode_skin_resize.c */
extern const char OP_SKIN_RESIZE[];
void initSkinResize(TransInfo *t);
-void TRANSFORM_OT_skin_resize(wmOperatorType *ot);
+void TRANSFORM_OT_skin_resize(struct wmOperatorType *ot);
/* transform_op_mode_tilt.c */
extern const char OP_TILT[];
void initTilt(TransInfo *t);
-void TRANSFORM_OT_tilt(wmOperatorType *ot);
+void TRANSFORM_OT_tilt(struct wmOperatorType *ot);
/* transform_op_mode_timescale.c */
void initTimeScale(TransInfo *t);
@@ -219,17 +219,17 @@ void initTimeTranslate(TransInfo *t);
/* transform_op_mode_tosphere.c */
extern const char OP_TOSPHERE[];
void initToSphere(TransInfo *t);
-void TRANSFORM_OT_tosphere(wmOperatorType *ot);
+void TRANSFORM_OT_tosphere(struct wmOperatorType *ot);
/* transform_op_mode_trackball.c */
extern const char OP_TRACKBALL[];
void initTrackball(TransInfo *t);
-void TRANSFORM_OT_trackball(wmOperatorType *ot);
+void TRANSFORM_OT_trackball(struct wmOperatorType *ot);
/* transform_op_mode_translate.c */
extern const char OP_TRANSLATION[];
void initTranslation(TransInfo *t);
-void TRANSFORM_OT_translate(wmOperatorType *ot);
+void TRANSFORM_OT_translate(struct wmOperatorType *ot);
/* transform_op_mode_vert_slide.c */
extern const char OP_VERT_SLIDE[];
@@ -237,11 +237,11 @@ void drawVertSlide(TransInfo *t);
void doVertSlide(TransInfo *t, float perc);
void initVertSlide_ex(TransInfo *t, bool use_even, bool flipped, bool use_clamp);
void initVertSlide(TransInfo *t);
-void TRANSFORM_OT_vert_slide(wmOperatorType *ot);
+void TRANSFORM_OT_vert_slide(struct wmOperatorType *ot);
/* transform_op_orientation.c */
-void TRANSFORM_OT_select_orientation(wmOperatorType *ot);
-void TRANSFORM_OT_delete_orientation(wmOperatorType *ot);
-void TRANSFORM_OT_create_orientation(wmOperatorType *ot);
+void TRANSFORM_OT_select_orientation(struct wmOperatorType *ot);
+void TRANSFORM_OT_delete_orientation(struct wmOperatorType *ot);
+void TRANSFORM_OT_create_orientation(struct wmOperatorType *ot);
#endif
diff --git a/source/blender/editors/transform/transform_ops/transform_op.c b/source/blender/editors/transform/transform_ops/transform_op.c
index 0b814f925f8..78eb563d23c 100644
--- a/source/blender/editors/transform/transform_ops/transform_op.c
+++ b/source/blender/editors/transform/transform_ops/transform_op.c
@@ -20,37 +20,25 @@
#include "MEM_guardedalloc.h"
-#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
-#include "DNA_constraint_types.h"
#include "DNA_mask_types.h"
#include "DNA_mesh_types.h"
-#include "DNA_movieclip_types.h"
-#include "DNA_scene_types.h" /* PET modes */
-#include "DNA_workspace_types.h"
#include "DNA_gpencil_types.h"
-#include "BLI_math.h"
-#include "BLI_utildefines.h"
-#include "BLT_translation.h"
+#include "BLI_math.h"
#include "BKE_context.h"
#include "BKE_global.h"
-#include "BKE_report.h"
#include "BKE_editmesh.h"
-#include "BKE_layer.h"
#include "BKE_scene.h"
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "GPU_state.h"
-#include "ED_image.h"
#include "ED_keyframing.h"
#include "ED_screen.h"
#include "ED_space_api.h"
-#include "ED_markers.h"
-#include "ED_view3d.h"
#include "ED_mesh.h"
#include "ED_clip.h"
#include "ED_node.h"
@@ -62,21 +50,15 @@
#include "RNA_enum_types.h"
#include "BLF_api.h"
-#include "BLT_translation.h"
#include "WM_api.h"
-#include "WM_message.h"
#include "WM_types.h"
#include "WM_toolsystem.h"
-#include "UI_view2d.h"
-#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
-#include "ED_screen.h"
-/* for USE_LOOPSLIDE_HACK only */
-#include "ED_mesh.h"
+#include "BLT_translation.h"
#include "transform.h"
#include "transform_convert.h"
diff --git a/source/blender/editors/transform/transform_ops/transform_op_mode.c b/source/blender/editors/transform/transform_ops/transform_op_mode.c
index 9f05a09d4ec..86d9404cb37 100644
--- a/source/blender/editors/transform/transform_ops/transform_op_mode.c
+++ b/source/blender/editors/transform/transform_ops/transform_op_mode.c
@@ -22,80 +22,31 @@
*/
#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <math.h>
-#include <float.h>
-
-#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
-#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
-#include "DNA_mask_types.h"
-#include "DNA_mesh_types.h"
-#include "DNA_movieclip_types.h"
-#include "DNA_scene_types.h" /* PET modes */
-#include "DNA_workspace_types.h"
#include "DNA_gpencil_types.h"
-#include "BLI_alloca.h"
-#include "BLI_utildefines.h"
#include "BLI_math.h"
-#include "BLI_rect.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
-#include "BLI_ghash.h"
-#include "BLI_utildefines_stack.h"
-#include "BLI_memarena.h"
#include "BKE_nla.h"
-#include "BKE_editmesh.h"
-#include "BKE_editmesh_bvh.h"
#include "BKE_context.h"
#include "BKE_constraint.h"
-#include "BKE_particle.h"
-#include "BKE_unit.h"
-#include "BKE_scene.h"
-#include "BKE_mask.h"
-#include "BKE_mesh.h"
#include "BKE_report.h"
-#include "BKE_workspace.h"
-
-#include "DEG_depsgraph.h"
-
-#include "GPU_immediate.h"
-#include "GPU_matrix.h"
-#include "GPU_state.h"
#include "ED_image.h"
-#include "ED_keyframing.h"
#include "ED_screen.h"
-#include "ED_space_api.h"
#include "ED_markers.h"
-#include "ED_view3d.h"
-#include "ED_mesh.h"
-#include "ED_clip.h"
-#include "ED_node.h"
-#include "ED_gpencil.h"
-#include "ED_sculpt.h"
#include "WM_types.h"
-#include "WM_api.h"
-#include "UI_view2d.h"
#include "UI_interface.h"
-#include "UI_interface_icons.h"
-#include "UI_resources.h"
-
-#include "RNA_access.h"
-#include "RNA_define.h"
-#include "BLF_api.h"
#include "BLT_translation.h"
#include "transform.h"
-#include "transform_convert.h"
#include "transform_op.h"
/* Disabling, since when you type you know what you are doing,
diff --git a/source/blender/editors/transform/transform_ops/transform_op_mode_align.c b/source/blender/editors/tran
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list