Page MenuHome

Fix :T94815 Drag to add node search prioritizes wrong node type
Needs ReviewPublic

Authored by Shrey Aggarwal (shrey_agg) on Feb 3 2022, 3:03 AM.

Details

Summary

The patch corrects the prority order of two socket nodes : "Combine HSV" and "Combine XYZ" when a Vector socket is dragged out.
Earlier the socket "Combine HSV" got a higher priority than the "Combine XYZ" in the pop-up menu.
This was only in the case if the dragged out socket was a Vector type.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested changes to this revision.Feb 4 2022, 12:40 AM

Thanks for the patch. I don't think adding a string comparison in this general function is the correct solution though.
I think a better solution is to add a special implementation of gather_link_search_ops to the offending combine node.

This revision now requires changes to proceed.Feb 4 2022, 12:40 AM

Implemented gather_link_search_ops function for CombineRGB, CombineXYZ and CombineHSV