[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49582] trunk/blender/source/blender/ editors/mask/mask_add.c: fix for crash when mask editing if there is an active point but no active spline .

Campbell Barton ideasman42 at gmail.com
Sun Aug 5 20:12:35 CEST 2012


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;




More information about the Bf-blender-cvs mailing list