2.5 - Keyframe types are now preserved after inserting keyframes which would overwrite the existing keyframes

This commit is contained in:
Joshua Leung 2009-09-22 01:27:48 +00:00
parent 9182dc3b8f
commit b55919069e

@ -207,8 +207,13 @@ int insert_bezt_fcurve (FCurve *fcu, BezTriple *bezt, short flag)
// TODO: perform some other operations?
}
else {
char oldKeyType= BEZKEYTYPE(fcu->bezt + i);
/* just brutally replace the values */
*(fcu->bezt + i) = *bezt;
/* special exception for keyframe type - copy value back so that this info isn't lost */
BEZKEYTYPE(fcu->bezt + i)= oldKeyType;
}
}
}