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
Showing only changes of commit c43c42d703 - Show all commits

View File

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