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.

This commit is contained in:
Lukas Toenne 2012-03-12 14:39:37 +00:00
parent a527e3ea25
commit d3e271c55a

@ -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];