diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-02-14 06:36:15 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-02-14 06:36:15 +0300 |
commit | 0c2099086b77d5438894d52847fa0c2a68bd0c81 (patch) | |
tree | e37abc258db2ea52181a73a09e4338daf867e84a /source/blender/editors/curve | |
parent | 8ea0b4685cadd7c7bede9017d07a296bab635469 (diff) |
Active spline number should also be stored/restored by undo stack.
It could point to nowhere otherwise.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 0f6b88554e1..409fd702844 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -86,6 +86,7 @@ typedef struct { void *lastsel; GHash *undoIndex; ListBase fcurves, drivers; + int actnu; } UndoCurve; /* Definitions needed for shape keys */ @@ -6961,6 +6962,7 @@ static void undoCurve_to_editCurve(void *ucu, void *obe) } cu->lastsel= lastsel; + cu->actnu= undoCurve->actnu; ED_curve_updateAnimPaths(obedit); } @@ -7006,6 +7008,7 @@ static void *editCurve_to_undoCurve(void *obe) } undoCurve->lastsel= lastsel; + undoCurve->actnu= cu->actnu; return undoCurve; } |