diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-02-05 04:12:07 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-02-05 04:12:07 +0300 |
commit | 81d2eda2bf8a0d73ed7bbf077c9fa4ffcf54aa6c (patch) | |
tree | 34438cdc7a6d7918398c85ca0814fefcb1249681 /source/blender/editors/space_view3d/view3d_navigate_zoom.c | |
parent | b1b1a74af15b4eaa0757ad88acfbcac73b9a64fe (diff) |
Fix error in b1b1a74af15b4eaa0757ad88acfbcac73b9a64fe
`op` --> `op->customdata`
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_navigate_zoom.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_navigate_zoom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_navigate_zoom.c b/source/blender/editors/space_view3d/view3d_navigate_zoom.c index d7b1daa93c2..a6c7d06c079 100644 --- a/source/blender/editors/space_view3d/view3d_navigate_zoom.c +++ b/source/blender/editors/space_view3d/view3d_navigate_zoom.c @@ -548,7 +548,8 @@ static int viewzoom_invoke(bContext *C, wmOperator *op, const wmEvent *event) (use_cursor_init && (U.uiflag & USER_ZOOM_TO_MOUSEPOS))); ED_view3d_camera_lock_autokey(vod->v3d, vod->rv3d, C, false, true); - viewops_data_free(C, op); + viewops_data_free(C, op->customdata); + op->customdata = NULL; return OPERATOR_FINISHED; } @@ -568,7 +569,8 @@ static int viewzoom_invoke(bContext *C, wmOperator *op, const wmEvent *event) static void viewzoom_cancel(bContext *C, wmOperator *op) { - viewops_data_free(C, op); + viewops_data_free(C, op->customdata); + op->customdata = NULL; } void VIEW3D_OT_zoom(wmOperatorType *ot) |