Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-09-27 19:42:19 +0300
committerJacques Lucke <jacques@blender.org>2021-09-27 19:42:19 +0300
commitc76ccd85bed2878ab093165568d66e10e712ef69 (patch)
tree21f5f1f433de541211675b905806dd0c9bc1ab74 /source/blender/blenkernel/intern/asset_library.cc
parent11bfbc3337bc89f1476b0894823e3dc923e4e4b0 (diff)
Cleanup: incorrect null check in asset library
Found by clang tidy (P2439).
Diffstat (limited to 'source/blender/blenkernel/intern/asset_library.cc')
-rw-r--r--source/blender/blenkernel/intern/asset_library.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/asset_library.cc b/source/blender/blenkernel/intern/asset_library.cc
index 6fed355c41b..8d38f2106c1 100644
--- a/source/blender/blenkernel/intern/asset_library.cc
+++ b/source/blender/blenkernel/intern/asset_library.cc
@@ -85,7 +85,7 @@ void AssetLibrary::on_save_post(struct Main *main,
struct PointerRNA ** /*pointers*/,
const int /*num_pointers*/)
{
- if (this->catalog_service) {
+ if (this->catalog_service == nullptr) {
return;
}