From 7b951ba5c32a5b78a958e22aa310e7489b39ae00 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 15 Oct 2020 09:31:04 +0200 Subject: Cleanup: Do not compare bool value to 0. --- source/blender/blenloader/intern/readfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 5623f8e5eea..c72788c01da 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -8144,7 +8144,7 @@ static void add_loose_objects_to_scene(Main *mainvar, if (ob->id.us == 0) { do_it = true; } - else if ((ob->id.lib == lib) && (object_in_any_collection(bmain, ob) == 0)) { + else if ((ob->id.lib == lib) && !object_in_any_collection(bmain, ob)) { /* When appending, make sure any indirectly loaded object gets a base, * when they are not part of any collection yet. */ do_it = true; -- cgit v1.2.3