[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10831] trunk/blender/source/blender/src/ editaction.c: Added sanity checks for possible cases where previous commit could segfault .
Joshua Leung
aligorith at gmail.com
Thu May 31 14:03:56 CEST 2007
Revision: 10831
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10831
Author: aligorith
Date: 2007-05-31 14:03:55 +0200 (Thu, 31 May 2007)
Log Message:
-----------
Added sanity checks for possible cases where previous commit could segfault.
Modified Paths:
--------------
trunk/blender/source/blender/src/editaction.c
Modified: trunk/blender/source/blender/src/editaction.c
===================================================================
--- trunk/blender/source/blender/src/editaction.c 2007-05-31 11:47:04 UTC (rev 10830)
+++ trunk/blender/source/blender/src/editaction.c 2007-05-31 12:03:55 UTC (rev 10831)
@@ -2710,18 +2710,22 @@
if (mode == 0) return;
for (achan= act->chanbase.first; achan; achan=achan->next) {
- if (EDITABLE_ACHAN(achan) && (SEL_ACHAN(achan) || (mode == 1))) {
- for (icu= achan->ipo->curve.first; icu; icu=icu->next) {
- val = icu->curval;
- insert_vert_ipo(icu, cfra, val);
- }
+ if (EDITABLE_ACHAN(achan)) {
+ if (achan->ipo && (SEL_ACHAN(achan) || (mode == 1))) {
+ for (icu= achan->ipo->curve.first; icu; icu=icu->next) {
+ val = icu->curval;
+ insert_vert_ipo(icu, cfra, val);
+ }
+ }
if (EXPANDED_ACHAN(achan) && FILTER_CON_ACHAN(achan)) {
for (conchan=achan->constraintChannels.first; conchan; conchan=conchan->next) {
- if (EDITABLE_CONCHAN(conchan) && (SEL_ACHAN(conchan) || (mode == 1))) {
- for (icu= conchan->ipo->curve.first; icu; icu=icu->next) {
- val = icu->curval;
- insert_vert_ipo(icu, cfra, val);
+ if (EDITABLE_CONCHAN(conchan)) {
+ if (conchan->ipo && (SEL_ACHAN(conchan) || (mode == 1))) {
+ for (icu= conchan->ipo->curve.first; icu; icu=icu->next) {
+ val = icu->curval;
+ insert_vert_ipo(icu, cfra, val);
+ }
}
}
}
More information about the Bf-blender-cvs
mailing list