Open rcorre opened 1 year ago
Can't reproduce in master. Even with multiple GridMap nodes in the same scene the visuals center at the correct position with one frame delay.
After further testing I noticed this happens randomly sometimes when the grid axis are edited.
I think this might be a duplicate of https://github.com/godotengine/godot/issues/57068, which causes it to try to move the grid to the last valid position the mouse was in (in some cases you can see the tile placement still at that position), but only after certain actions like selecting the GridMap, adjusting the floor, etc. In the code, some grid_map_editor functions are calling update_grid(), which I think is making it look like it's moving randomly whenever those get called.
I added a PR for that bug, so hopefully that addresses this as well.
Godot version
4.0.2.stable.arch_linux
System information
Linux
Issue description
The orange grid gizmo for a gridmap in the editor appears centered at a seemingly random spot every time you select a
GridMap
Steps to reproduce
Minimal reproduction project
N/A, just add a
GridMap
to an empty project