diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-03-12 18:39:37 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-03-12 18:39:37 +0400 |
commit | d3e271c55a5740e7ea9b3302c57555605d860d12 (patch) | |
tree | 5d393944fb41fc0988d9689a00e67b7da9f0af7c /source/blender/windowmanager | |
parent | a527e3ea25bd66e4cd6d6842bcdab865be0c913f (diff) |
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.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; i<gesture->points; i++, lasso+=2) { loc[0]= lasso[0]; loc[1]= lasso[1]; |