An "undefined" socket only makes sense when the socket retains its idname
, so that the typeinfo
can be restored to a known type later on. This feature was designed for custom (python) nodes,…
I think this needs handling in the ntreeBlendReadData
stage:
The socket->default_value
is currently mapped regardless of whether Blender knows the socket type, and then carried around until…
Did a test with retaining the socket idname and then saving the file in 3.6. But this crashes when loading in 4.0 again, because when 4.0 finds a rotation socket it expects there to be valid…
Yeah, should be possible to copy the idname from the iosocket
to the declaration and then use that instead of bke::NodeSocketTypeUndefined.idname
. Then node_socket_set_typeinfo
will set the…
This patch should be cherry-picked into blender-v4.0-release
when accepted.
The rotation socket now shows up as "undefined" and does not crash Blender any more: ![Screenshot_20231023_115239](…