[Bf-blender-cvs] [7b951ba5c32] master: Cleanup: Do not compare bool value to 0.

Bastien Montagne noreply at git.blender.org
Thu Oct 15 09:31:45 CEST 2020


Commit: 7b951ba5c32a5b78a958e22aa310e7489b39ae00
Author: Bastien Montagne
Date:   Thu Oct 15 09:31:04 2020 +0200
Branches: master
https://developer.blender.org/rB7b951ba5c32a5b78a958e22aa310e7489b39ae00

Cleanup: Do not compare bool value to 0.

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

M	source/blender/blenloader/intern/readfile.c

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

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;



More information about the Bf-blender-cvs mailing list