diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-15 05:50:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-15 05:52:59 +0300 |
commit | 2ba804d7b7dc9612540ff0d15a89cc1fc8c0bffa (patch) | |
tree | 6d2aaf2ec1d0fd43010ba7bead88914a8bd935ca /source/blender/editors/space_action | |
parent | 5dc0fd08a70b123e5d17057e1cbc1462bef0d8d8 (diff) |
Screen: clear runtime structures on file-read & data-copy
Clear the runtime data structs instead of individual members,
this simplifies adding new runtime members as there are at least
two places they would need to be cleared.
Resolves error in D8883.
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r-- | source/blender/editors/space_action/space_action.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index f6af2f79890..26b087168f9 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -153,6 +153,8 @@ static SpaceLink *action_duplicate(SpaceLink *sl) { SpaceAction *sactionn = MEM_dupallocN(sl); + memset(&sactionn->runtime, 0x0, sizeof(sactionn->runtime)); + /* clear or remove stuff from old */ return (SpaceLink *)sactionn; |