[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16482] trunk/blender/source/blender/ include/BIF_editaction.h: Fix segmentation fault in ipo transform.

Diego Borghetti bdiego at gmail.com
Fri Sep 12 07:14:58 CEST 2008


Revision: 16482
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16482
Author:   bdiego
Date:     2008-09-12 07:14:57 +0200 (Fri, 12 Sep 2008)

Log Message:
-----------
Fix segmentation fault in ipo transform.

The NLA_IPO_SCALED define don't check if we have a Ipo Space open,
so in some case (like when you move a rig with locrot key) when
the function make_ipokey_transform is called, Blender crash.

Modified Paths:
--------------
    trunk/blender/source/blender/include/BIF_editaction.h

Modified: trunk/blender/source/blender/include/BIF_editaction.h
===================================================================
--- trunk/blender/source/blender/include/BIF_editaction.h	2008-09-12 05:02:06 UTC (rev 16481)
+++ trunk/blender/source/blender/include/BIF_editaction.h	2008-09-12 05:14:57 UTC (rev 16482)
@@ -78,7 +78,7 @@
 #define SEL_GPL(gpl) ((gpl->flag & GP_LAYER_ACTIVE) || (gpl->flag & GP_LAYER_SELECT))
 
 #define NLA_ACTION_SCALED (G.saction->mode==SACTCONT_ACTION && G.saction->pin==0 && OBACT && OBACT->action)
-#define NLA_IPO_SCALED (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname)
+#define NLA_IPO_SCALED (OBACT && OBACT->action && G.sipo && G.sipo->pin==0 && G.sipo->actname)
 
 /* constants for setting ipo-interpolation type */
 enum {





More information about the Bf-blender-cvs mailing list