[Bf-blender-cvs] [aae54f903ce] functions: fix path filter
Jacques Lucke
noreply at git.blender.org
Thu Dec 19 13:21:36 CET 2019
Commit: aae54f903ce13aee924fa0df85e4b05c7740fcae
Author: Jacques Lucke
Date: Thu Dec 19 11:46:33 2019 +0100
Branches: functions
https://developer.blender.org/rBaae54f903ce13aee924fa0df85e4b05c7740fcae
fix path filter
===================================================================
M release/scripts/startup/nodes/search.py
===================================================================
diff --git a/release/scripts/startup/nodes/search.py b/release/scripts/startup/nodes/search.py
index d1e28e855f0..9ea167d7672 100644
--- a/release/scripts/startup/nodes/search.py
+++ b/release/scripts/startup/nodes/search.py
@@ -26,7 +26,7 @@ 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():
+ if not path.is_file() or not str(path).endswith(".blend"):
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