Node Wrangler: Skip internal attributes while populating the 'Shader Editor->Add->Input->Attributes' menu #105084

Merged
Martijn Versteegh merged 1 commits from Baardaap/blender-addons:skiphiddenattrs into main 2023-12-31 15:10:21 +01:00

View File

@ -361,6 +361,7 @@ class NWAttributeMenu(bpy.types.Menu):
for obj in objs: for obj in objs:
if obj.data.attributes: if obj.data.attributes:
for attr in obj.data.attributes: for attr in obj.data.attributes:
if not attr.is_internal:
attrs.append(attr.name) attrs.append(attr.name)
attrs = list(set(attrs)) # get a unique list attrs = list(set(attrs)) # get a unique list