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>2010-10-18 04:25:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-18 04:25:32 +0400
commit433f871f0f6bc68fbb1fffbdac42ef1bb8b5d019 (patch)
treef6a920d95309bfd69865ee942829f72ea4e3157c /source/blender/editors/mesh/editmesh_add.c
parentc7c128f03b1a5bd95946ef5b2d1f9e46abd76ce7 (diff)
bugfix [#24302] Ctrl+Click Extrude gets old mouse events
double click didnt check mouse distance moved so you could click twice in different areas of the screen very fast and generate a double click event which had old mouse coords copied into it but was sent to an operator set to run on single click (because the double click wasnt handled). Also added MEM_name_ptr function (included in debug mode only), prints the name of allocated memory. used for debugging where events came from.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_add.c')
-rw-r--r--source/blender/editors/mesh/editmesh_add.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c
index 525867d74c0..89991015419 100644
--- a/source/blender/editors/mesh/editmesh_add.c
+++ b/source/blender/editors/mesh/editmesh_add.c
@@ -114,13 +114,9 @@ static int dupli_extrude_cursor(bContext *C, wmOperator *op, wmEvent *event)
float min[3], max[3];
int done= 0;
short use_proj;
- wmWindow *win= CTX_wm_window(C);
-
+printf("%d\n", event->val);
em_setup_viewcontext(C, &vc);
- printf("\n%d %d\n", event->x, event->y);
- printf("%d %d\n", win->eventstate->x, win->eventstate->y);
-
use_proj= (vc.scene->toolsettings->snap_flag & SCE_SNAP) && (vc.scene->toolsettings->snap_mode==SCE_SNAP_MODE_FACE);
invert_m4_m4(vc.obedit->imat, vc.obedit->obmat);