[Bf-blender-cvs] [f761a1bc7ab] node-add-asset-menu: Fix else after return

Hans Goudey noreply at git.blender.org
Thu Oct 6 03:23:18 CEST 2022


Commit: f761a1bc7aba51f6b83230a36d48bdf333a2fdf1
Author: Hans Goudey
Date:   Wed Oct 5 20:23:08 2022 -0500
Branches: node-add-asset-menu
https://developer.blender.org/rBf761a1bc7aba51f6b83230a36d48bdf333a2fdf1

Fix else after return

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

M	source/blender/blenkernel/intern/asset_library_service.cc

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

diff --git a/source/blender/blenkernel/intern/asset_library_service.cc b/source/blender/blenkernel/intern/asset_library_service.cc
index 8d8a0d82906..fc533ac679a 100644
--- a/source/blender/blenkernel/intern/asset_library_service.cc
+++ b/source/blender/blenkernel/intern/asset_library_service.cc
@@ -62,7 +62,7 @@ AssetLibrary *AssetLibraryService::get_asset_library(
 
     return get_asset_library_on_disk(root_path);
   }
-  else if (library_reference.type == ASSET_LIBRARY_CUSTOM) {
+  if (library_reference.type == ASSET_LIBRARY_CUSTOM) {
     bUserAssetLibrary *user_library = BKE_preferences_asset_library_find_from_index(
         &U, library_reference.custom_library_index);



More information about the Bf-blender-cvs mailing list