Revision: 44835
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44835
Author:   lukastoenne
Date:     2012-03-12 14:39:37 +0000 (Mon, 12 Mar 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c    
2012-03-12 14:35:07 UTC (rev 44834)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c    
2012-03-12 14:39:37 UTC (rev 44835)
@@ -2683,6 +2683,7 @@
        
        /* 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];

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to