diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-07-16 10:27:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-07-16 10:27:53 +0300 |
commit | b0b2546d4a3a308da19d218d919915aac4834e59 (patch) | |
tree | 259b98a02827131f6a02ed4110a5d1b26adb7568 /source | |
parent | c635663e4a8169f68010b9234fa60f17ad03d7cb (diff) |
Fix assert unlinking text
Interferes with debugging.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/library_remap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/library_remap.c b/source/blender/blenkernel/intern/library_remap.c index 8fe2552c03f..796010205e7 100644 --- a/source/blender/blenkernel/intern/library_remap.c +++ b/source/blender/blenkernel/intern/library_remap.c @@ -1144,7 +1144,8 @@ static void id_delete(Main *bmain, const bool do_tagged_deletion) #ifdef DEBUG_PRINT printf("%s: deleting %s (%d)\n", __func__, id->name, id->us); #endif - BLI_assert(id->us == 0); + /* Text always has a single user, skip assert in this case. */ + BLI_assert((id->us == 0) || ELEM(GS(id->name), ID_TXT)); } BKE_id_free_ex(bmain, id, free_flag, !do_tagged_deletion); } |