Skip to content

"AI JSON" import bug #39

Description

@211ruben

In encoding.py, line 729 and 730

from_node, from_sock_raw = from_str.split(".", 1)
to_node, to_sock_raw = to_str.split(".", 1)

is done, resulting in errors like this when the node name contains a dot(eg Node.001 what blender automatically generates when a node with the same name already exists):

Socket '001.Color' (name='001.Color') not found on 'Color'

suggested fix:

rsplit(".", 1)

this would split on the last dot meaning it would only break if the socket name contains a dot which is far less likely.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions