diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-02-05 01:34:56 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-02-05 02:38:53 +0300 |
commit | b1b1a74af15b4eaa0757ad88acfbcac73b9a64fe (patch) | |
tree | 0132cce785cc9305f8ea1dacf13fd453ede8f450 /source/blender/editors/space_view3d/view3d_navigate.h | |
parent | ec9f237a9ef01e5966228e0789eeecc419021f56 (diff) |
Cleanup: set 'op->customdata' out of 'viewops_data_create'
Setting the `op->customdata` out of `viewops_data_create` makes the usage of the function clearer thus making the code easier to read.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_navigate.h')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_navigate.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/view3d_navigate.h b/source/blender/editors/space_view3d/view3d_navigate.h index 2f9a0ff603c..792d2a83bc2 100644 --- a/source/blender/editors/space_view3d/view3d_navigate.h +++ b/source/blender/editors/space_view3d/view3d_navigate.h @@ -166,15 +166,17 @@ bool view3d_orbit_calc_center(struct bContext *C, float r_dyn_ofs[3]); void view3d_operator_properties_common(struct wmOperatorType *ot, const enum eV3D_OpPropFlag flag); -void viewops_data_free(struct bContext *C, struct wmOperator *op); +/** + * Allocate and fill in context pointers for #ViewOpsData + */ +void viewops_data_free(struct bContext *C, ViewOpsData *vod); /** * Allocate, fill in context pointers and calculate the values for #ViewOpsData */ -void viewops_data_create(struct bContext *C, - struct wmOperator *op, - const struct wmEvent *event, - enum eViewOpsFlag viewops_flag); +ViewOpsData *viewops_data_create(struct bContext *C, + const struct wmEvent *event, + enum eViewOpsFlag viewops_flag); void VIEW3D_OT_view_all(struct wmOperatorType *ot); void VIEW3D_OT_view_selected(struct wmOperatorType *ot); |