From d3e271c55a5740e7ea9b3302c57555605d860d12 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Mon, 12 Mar 2012 14:39:37 +0000 Subject: [PATCH] Fix for lasso gestures. After executing the modal gesture operator the list of gesture points is copied to the operator "path" id property, which is simply a collection of points. This list must be cleared before adding new lasso points to it, since operator properties are now stored after each execution. Noticed by Olivier Amrein (oenvoyage) on IRC. --- source/blender/windowmanager/intern/wm_operators.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 22e6d5be383..405daff829e 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2683,6 +2683,7 @@ static void gesture_lasso_apply(bContext *C, wmOperator *op) /* operator storage as path. */ + RNA_collection_clear(op->ptr, "path"); for(i=0; ipoints; i++, lasso+=2) { loc[0]= lasso[0]; loc[1]= lasso[1];