[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17045] trunk/blender/source/blender/src/ keyframing.c: Bugfix, studio report by Pablo Venomgfx
Ton Roosendaal
ton at blender.org
Sun Oct 12 15:16:23 CEST 2008
Revision: 17045
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17045
Author: ton
Date: 2008-10-12 15:16:23 +0200 (Sun, 12 Oct 2008)
Log Message:
-----------
Bugfix, studio report by Pablo Venomgfx
- insert key crashed when object ipo was in action, but action got unlinked
from object
Modified Paths:
--------------
trunk/blender/source/blender/src/keyframing.c
Modified: trunk/blender/source/blender/src/keyframing.c
===================================================================
--- trunk/blender/source/blender/src/keyframing.c 2008-10-12 12:17:57 UTC (rev 17044)
+++ trunk/blender/source/blender/src/keyframing.c 2008-10-12 13:16:23 UTC (rev 17045)
@@ -1347,10 +1347,12 @@
if (achan && achan->ipo)
cks->ipo= achan->ipo;
}
-
- /* deselect all ipo-curves */
- for (icu= cks->ipo->curve.first; icu; icu= icu->next) {
- icu->flag &= ~IPO_SELECT;
+ /* cks->ipo can be NULL while editing */
+ if(cks->ipo) {
+ /* deselect all ipo-curves */
+ for (icu= cks->ipo->curve.first; icu; icu= icu->next) {
+ icu->flag &= ~IPO_SELECT;
+ }
}
}
}
More information about the Bf-blender-cvs
mailing list