From 2ba804d7b7dc9612540ff0d15a89cc1fc8c0bffa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 15 Jun 2021 12:50:08 +1000 Subject: 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. --- source/blender/editors/space_action/space_action.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/space_action') 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; -- cgit v1.2.3