diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-15 10:31:04 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-15 10:31:40 +0300 |
commit | 7b951ba5c32a5b78a958e22aa310e7489b39ae00 (patch) | |
tree | 34bfb9975aef1a7a4c8032e659ce461997cc0fb3 /source/blender/blenloader/intern | |
parent | 1001adb500196537050cc60e8d80318a2f1a56c3 (diff) |
Cleanup: Do not compare bool value to 0.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |