godotengine / godot

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

Navigation Polygon Instance editing to conform to other polygon instance editing #25459

Open MJBrune opened 5 years ago

MJBrune commented 5 years ago

Godot version: 3.1 beta 2

OS/device including version: Windows but any should do.

Issue description: Navigation poly editing currently looks like this image

and thus has to be done by hand in the editor for "exact" numbers.

Expected Navigation Poly editing should look like this image which would conform to other poly editing that is already existing.

Steps to reproduce: Open editor

Create Nav Poly

Painfully try to get accurate pixels on a 16 by 16 poly and unable to zoom at the correct level because its so tedious.

Minimal reproduction project: Blank Project should work for starting.

MJBrune commented 5 years ago

Screw it, this bugs me too much. Feel free to assign to me if possible. I'm diving into the engine.

MJBrune commented 5 years ago

PR'ed a solution, seems to work correctly on my end but let me know if I missed anything or for some reason it doesn't work exactly as desired.