[Bf-blender-cvs] [c78896e6750] functions: cleanup

Jacques Lucke noreply at git.blender.org
Thu Dec 19 13:21:39 CET 2019


Commit: c78896e6750612c8e74fe37de0cfb145a07e53f1
Author: Jacques Lucke
Date:   Thu Dec 19 11:47:43 2019 +0100
Branches: functions
https://developer.blender.org/rBc78896e6750612c8e74fe37de0cfb145a07e53f1

cleanup

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

M	release/scripts/startup/nodes/search.py

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

diff --git a/release/scripts/startup/nodes/search.py b/release/scripts/startup/nodes/search.py
index 9ea167d7672..14840533db5 100644
--- a/release/scripts/startup/nodes/search.py
+++ b/release/scripts/startup/nodes/search.py
@@ -25,8 +25,8 @@ class NodeSearch(bpy.types.Operator):
 
         local_group_names = set(tree.name for tree in bpy.data.node_groups)
         nodelibdir = Path(context.preferences.filepaths.nodelib_directory)
-        for path in nodelibdir.glob("**/*"):
-            if not path.is_file() or not str(path).endswith(".blend"):
+        for path in nodelibdir.glob("**/*.blend"):
+            if not path.is_file():
                 continue
             with bpy.data.libraries.load(str(path)) as (data_from, data_to):
                 for group_name in data_from.node_groups:



More information about the Bf-blender-cvs mailing list