Revert "Fix assert unlinking text"

This reverts commit b0b2546d4a.

Please do not sweept the dirt under the carpet like that! If there is a
bug, either report it or fix it, but do not silence it!
This commit is contained in:
Bastien Montagne 2019-07-19 11:10:53 +02:00
parent 0d3e055bda
commit 48418ec125
Notes: blender-bot 2023-02-14 10:35:28 +01:00
Referenced by issue #82849, Assert When Unlinking "Edit Source" Text Data-block
1 changed files with 1 additions and 2 deletions

View File

@ -1144,8 +1144,7 @@ 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
/* Text always has a single user, skip assert in this case. */
BLI_assert((id->us == 0) || ELEM(GS(id->name), ID_TXT));
BLI_assert(id->us == 0);
}
BKE_id_free_ex(bmain, id, free_flag, !do_tagged_deletion);
}