From 3028de9527a0a7e2772fd87fcf1abbf823698371 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 6 Jan 2021 18:06:11 +0100 Subject: UndoType: Refactor: replace `use_context` boolean by a bitflag. We will soon need more options here, sinmpler and cleaner to use a bitflag then. --- source/blender/editors/space_text/text_undo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_text') diff --git a/source/blender/editors/space_text/text_undo.c b/source/blender/editors/space_text/text_undo.c index 8bc22833502..61b786b2b13 100644 --- a/source/blender/editors/space_text/text_undo.c +++ b/source/blender/editors/space_text/text_undo.c @@ -260,7 +260,7 @@ void ED_text_undosys_type(UndoType *ut) ut->step_foreach_ID_ref = text_undosys_foreach_ID_ref; - ut->use_context_for_encode = true; + ut->flags = UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE; ut->step_size = sizeof(TextUndoStep); } -- cgit v1.2.3