diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-09 14:48:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-09 14:48:18 +0400 |
commit | 22505c10f8b16e4e7064db9bd8636a4cbce8c6e0 (patch) | |
tree | e3fdfced747e0a4668b72642fdd2667be4e54916 /source/blender/windowmanager/WM_api.h | |
parent | a20a0ce7c780c6ede82f20d3e55e558c779681a9 (diff) |
fix [#33442] Units
adding meshes were scaling the user input values so the distance on the button didnt relate to the scale of the object added.
Now use an invoke function that scales unset default values.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 1037542759f..8d885bf6d6f 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -171,6 +171,7 @@ void WM_event_timer_sleep(struct wmWindowManager *wm, struct wmWindow *win, str /* operator api, default callbacks */ /* invoke callback, uses enum property named "type" */ +int WM_operator_view3d_distance_invoke(struct bContext *C, struct wmOperator *op, struct wmEvent *event); int WM_menu_invoke (struct bContext *C, struct wmOperator *op, struct wmEvent *event); int WM_enum_search_invoke(struct bContext *C, struct wmOperator *op, struct wmEvent *event); /* invoke callback, confirm menu + exec */ |