had to change how parent component is checked

still not sure what caused this

discord: https://discord.gg/WFwUXe6Em8
stoat: https://stt.gg/6T7e7yb7

all 4 comments

sorted by: hot top controversial new old
[–] 4 points 6 months ago (3 children)

I dont get whats going on I think the post needs more information

  • source
  • hideshow 3 child comments
  • [–] [S] 3 points 6 months ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 6 months ago (1 child)

    Did you end up figuring out the solution?

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 2 points 6 months 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)
  • source
  • parent