Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-05-25 16:38:36 +0300
committerBastien Montagne <bastien@blender.org>2020-05-25 16:38:36 +0300
commit849f5bee193e4d1c98b99a8e40da56a7af5a8fc8 (patch)
tree33229026cf7a4940f82dc6cde9125fb2b1af282f /source/blender/blenkernel/intern/lib_id.c
parent7a37db61258ed7d34e76f1e55a5fb7c597f8104e (diff)
Cleanup: ID makelocal code: remove useless and confusing debug code.
Thing is, user code should not have the responsibility to check that libquery is valid. Such checks are only source of confusion and errors as nobody will think about finding and updating them in some obscure specific area of the code...
Diffstat (limited to 'source/blender/blenkernel/intern/lib_id.c')
-rw-r--r--source/blender/blenkernel/intern/lib_id.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c
index 9ef1785a753..b4513fc2805 100644
--- a/source/blender/blenkernel/intern/lib_id.c
+++ b/source/blender/blenkernel/intern/lib_id.c
@@ -1746,20 +1746,6 @@ static void library_make_local_copying_check(ID *id,
/* Our oh-so-beloved 'from' pointers... Those should always be ignored here, since the actual
* relation we want to check is in the other way around. */
if (entry->usage_flag & IDWALK_CB_LOOPBACK) {
-#ifndef NDEBUG
- /* Some debug checks to ensure we explicitly are aware of all 'loop-back' cases, since those
- * may not always be manageable in the same way... */
- switch (GS(par_id->name)) {
- case ID_OB:
- BLI_assert(((Object *)par_id)->proxy_from == (Object *)id);
- break;
- case ID_KE:
- BLI_assert(((Key *)par_id)->from == id);
- break;
- default:
- BLI_assert(0);
- }
-#endif
continue;
}