Revision: 49582
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49582
Author:   campbellbarton
Date:     2012-08-05 18:12:34 +0000 (Sun, 05 Aug 2012)
Log Message:
-----------
fix for crash when mask editing if there is an active point but no active 
spline.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mask/mask_add.c

Modified: trunk/blender/source/blender/editors/mask/mask_add.c
===================================================================
--- trunk/blender/source/blender/editors/mask/mask_add.c        2012-08-05 
17:38:44 UTC (rev 49581)
+++ trunk/blender/source/blender/editors/mask/mask_add.c        2012-08-05 
18:12:34 UTC (rev 49582)
@@ -321,6 +321,7 @@
        *point = NULL;
 
        if (check_active) {
+               /* TODO, having an active point but no active spline is 
possible, why? */
                if (masklay->act_spline && masklay->act_point && 
MASKPOINT_ISSEL_ANY(masklay->act_point)) {
                        *spline = masklay->act_spline;
                        *point = masklay->act_point;
@@ -562,7 +563,8 @@
 
        RNA_float_get_array(op->ptr, "location", co);
 
-       if (masklay && masklay->act_point && 
MASKPOINT_ISSEL_ANY(masklay->act_point)) {
+       /* TODO, having an active point but no active spline is possible, why? 
*/
+       if (masklay && masklay->act_spline && masklay->act_point && 
MASKPOINT_ISSEL_ANY(masklay->act_point)) {
 
                /* cheap trick - double click for cyclic */
                MaskSpline *spline = masklay->act_spline;

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

Reply via email to