Fix T42639, editcurve flags not getting restored on undo.

Error here could be reproduced by tweaking curve properties such as
2d-3d or fill type and undoing.
This commit is contained in:
Antonis Ryakiotakis 2014-11-20 18:58:24 +01:00
parent 0facc48308
commit 6f7b4a3a3e
Notes: blender-bot 2023-02-14 09:48:23 +01:00
Referenced by issue #42639, Curve Ctrl+Z bug
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,7 @@ typedef struct {
GHash *undoIndex;
ListBase fcurves, drivers;
int actnu;
int flag;
} UndoCurve;
/* Definitions needed for shape keys */
@ -6880,6 +6881,7 @@ static void undoCurve_to_editCurve(void *ucu, void *UNUSED(edata), void *cu_v)
cu->actvert = undoCurve->actvert;
cu->actnu = undoCurve->actnu;
cu->flag = undoCurve->flag;
ED_curve_updateAnimPaths(cu);
}
@ -6919,6 +6921,7 @@ static void *editCurve_to_undoCurve(void *UNUSED(edata), void *cu_v)
undoCurve->actvert = cu->actvert;
undoCurve->actnu = cu->actnu;
undoCurve->flag = cu->flag;
return undoCurve;
}