imjp94 / gd-YAFSM

Yet Another Finite State Machine for godot
MIT License
534 stars 25 forks source link

Moving a state around the grid causes it to snap back to the other last state position #45

Open Nukiloco opened 2 years ago

Nukiloco commented 2 years ago

Current version is v3.5.beta1.official [b9b23d222]

When moving a state item after moving another state item, the state item will snap to the position of the other state item.

Nukiloco commented 2 years ago

This seems to happen after when you click off and click back onto the state machine editor.

Nukiloco commented 2 years ago

Looked into the code, oddly enough this happens because when _drag_end_pos and _drag_start_pos is the same value, it will set the position to zero. I assume its somehow getting the position from the last item?

imjp94 commented 2 years ago

Did you install gd-YAFSM from godot asset library? It sounds like #36 that has been fixed by #37 , though I haven't release it

You can try cloning this repository directly to see if the issue still persist

Nukiloco commented 2 years ago

Cloned the master branch of the repository, i will see if the issue is still here.