From 64513df8b63a73ddea9015aa133d321fe1f062b0 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 23 Nov 2020 11:56:40 +0100 Subject: Fix T82849: Assert When Unlinking "Edit Source" Text Data-block. Simplify and sanitize handling of usercounts for Text IDs generated trhough `BKE_text_load_ex`. --- source/blender/editors/space_text/text_ops.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/editors/space_text/text_ops.c') diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 52a5ff609d8..f8b7c62686f 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -338,8 +338,6 @@ static int text_open_exec(bContext *C, wmOperator *op) RNA_string_get(op->ptr, "filepath", str); text = BKE_text_load_ex(bmain, str, BKE_main_blendfile_path(bmain), internal); - /* Texts have no user by default... Only the 'real' user flag. */ - id_us_min(&text->id); if (!text) { if (op->customdata) { -- cgit v1.2.3