Page MenuHome

Expose multi input socket in python API
ClosedPublic

Authored by Wannes Malfait (Wannes) on Mar 29 2021, 12:09 PM.

Details

Summary

It was not possible to determine if a socket was multi input previously with bpy.
This patch exposes the flag as a read-only property of a node socket. This is important
for addons which automatically add connections between nodes.

Diff Detail

Repository
rB Blender
Branch
rna_multi_input (branched from master)
Build Status
Buildable 13826
Build 13826: arc lint + arc unit

Event Timeline

Wannes Malfait (Wannes) requested review of this revision.Mar 29 2021, 12:09 PM
Wannes Malfait (Wannes) created this revision.
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/makesrna/intern/rna_nodetree.c
9704

I think this should say True if the socket can accept multiple ordered input links. This makes it a bit more clear that it is a bit unrelated to link_limit.

This revision is now accepted and ready to land.Mar 30 2021, 1:50 PM
Wannes Malfait (Wannes) marked an inline comment as done.Mar 30 2021, 3:32 PM