godotengine / godot

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

Gizmo is visible during GridMap editing #59902

Open octetdev2 opened 2 years ago

octetdev2 commented 2 years ago

Godot version

4.0 dev (340ad7d74869e71d88f6ce7dcb1cf20e924faed2)

System information

MacOS, Macbook Air M1

Issue description

Current tool gizmo is visible when editing a GridMap, you can't use it but it steals input events and is visually in the way.

image

Steps to reproduce

N/A

Minimal reproduction project

No response

jmb462 commented 2 years ago

Could you please upload a minimal reproduction project ?

bmolyneaux commented 1 year ago

The GridMap demo could serve as a reproduction project: gridmap_demo.zip

The gizmo doesn't seem to steal input events in beta 9, but it is pointlessly in the way.

Calinou commented 1 year ago

This likely needs special casing in the code that displays the manipulation gizmo to disable its drawing when a GridMap node is selected. I'm not fond of this solution as it would prevent add-ons from doing the same for their own nodes though.

Maybe we can add editor-only metadata such as _show_manipulation_gizmo in specific nodes, and have this always set to false in GridMap?