diff options
author | YimingWu <xp8110@outlook.com> | 2021-06-29 17:32:38 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-06-29 17:32:38 +0300 |
commit | 037035921bf6cfc76069c508e35c8303ff60bf4e (patch) | |
tree | 8ba5125adafb7deeff66da4980a0cba38a7e6b82 /source/blender/gpencil_modifiers/intern/lineart | |
parent | e7fc15e2ef222b90e24594cdffe85894ff007e09 (diff) |
Cleanup: Remove unused function in lineart_cpu.c
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/lineart')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index 477b99d85d0..c05749061a9 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -1932,21 +1932,6 @@ static void lineart_object_load_worker(TaskPool *__restrict UNUSED(pool), } } -static bool _lineart_object_not_in_source_collection(Collection *source, Object *ob) -{ - CollectionChild *cc; - Collection *c = source->id.orig_id ? (Collection *)source->id.orig_id : source; - if (BKE_collection_has_object_recursive_instanced(c, (Object *)(ob->id.orig_id))) { - return false; - } - for (cc = source->children.first; cc; cc = cc->next) { - if (!_lineart_object_not_in_source_collection(cc->collection, ob)) { - return false; - } - } - return true; -} - static uchar lineart_intersection_mask_check(Collection *c, Object *ob) { LISTBASE_FOREACH (CollectionChild *, cc, &c->children) { |