• MousePotatoDoesStuff@piefed.socialOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    12 days ago

    My bad. This is a tool-type ECS component (a component that affects an entity, usually - and in this case - its parent). It seems to have been adopted by a node of the editor tree, leading to infinite recursion.

      • MousePotatoDoesStuff@piefed.socialOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 days ago

        Yeah, I made the script check whether it’s a child of a Node2D before accepting its parent as its component.

        Some other solutions might be:

        • removing the @tool modifier (not applicable in my case)
        • making the user manually assign the component (not necessary in this case)