diff options
author | Bastien Montagne <bastien@blender.org> | 2020-11-23 13:56:40 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-11-23 13:56:40 +0300 |
commit | 64513df8b63a73ddea9015aa133d321fe1f062b0 (patch) | |
tree | fd8efd6f46428243c8b7918f63e4ed109c51eb18 /source/blender/makesrna/intern/rna_main_api.c | |
parent | 401612b8e148c3533f61a170c5189cf3d50e7bc1 (diff) |
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`.
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index d2381ac7577..21ff44ed253 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -543,8 +543,6 @@ static Text *rna_Main_texts_load(Main *bmain, errno = 0; txt = BKE_text_load_ex(bmain, filepath, BKE_main_blendfile_path(bmain), is_internal); - /* Texts have no user by default... Only the 'real' user flag. */ - id_us_min(&txt->id); if (!txt) { BKE_reportf(reports, |