[Bf-blender-cvs] [03d50cddb34] lanpr-under-gp: LineArt: Compiler warning

YimingWu noreply at git.blender.org
Wed Sep 23 04:32:59 CEST 2020


Commit: 03d50cddb3406d89cc239c78f6ce7d7ca3b2ca76
Author: YimingWu
Date:   Wed Sep 23 10:03:19 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB03d50cddb3406d89cc239c78f6ce7d7ca3b2ca76

LineArt: Compiler warning

===================================================================

M	source/blender/editors/lineart/lineart_cpu.c

===================================================================

diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index c453549428f..1497cdb14cc 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -1701,7 +1701,7 @@ int ED_lineart_object_collection_usage_check(Collection *c, Object *ob)
   }
 
   if (c->children.first == NULL) {
-    if (BKE_collection_has_object(c, ob->id.orig_id)) {
+    if (BKE_collection_has_object(c, (Object *)(ob->id.orig_id))) {
       if (ob->lineart.usage == OBJECT_LRT_INHERENT) {
         if (c->lineart_usage == COLLECTION_LRT_OCCLUSION_ONLY) {
           return OBJECT_LRT_OCCLUSION_ONLY;



More information about the Bf-blender-cvs mailing list