godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.24k stars 20.23k forks source link

Gridmap selection only follows world grid and not gridmap #92655

Open sighlessm opened 3 months ago

sighlessm commented 3 months ago

Tested versions

System information

Windows 11

Issue description

I offset my gridmap so that the world origin would align with the center of a tile (the GridMap node's transform position is 1, 0, 1). However, when I shift-select, the base of the selection remains aligned with the original world grid and not the gridmap which has an offset position. gridmapselectionerror

Steps to reproduce

  1. Add GridMap node
  2. Change transform position
  3. Shift+click and drag to see the selection box and outline

Minimal reproduction project (MRP)

gridmap.zip

Hiiamwilliam commented 3 months ago

Also happens in 3.x. Note that the selection box (transparent blue) works correctly. The white outline (whose position is indeed wrong) just displays the intersection between the selection box and the currently edited floor.