forked from bartvdbraak/blender
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:
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];
|
||||
|
Loading…
Reference in New Issue
Block a user