godotengine / godot

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

Setting mouse mode to confined causes TextureButton hover to stop working (new -after upgrading to Godot 4.2 from 4.1.1) #85713

Open Mo32167 opened 10 months ago

Mo32167 commented 10 months ago

Godot version

v4.2.stable.mono.official [46dc27791]

System information

Godot v4.2.stable.mono - Fedora Linux 38 (Thirty Eight) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1650 SUPER (nvidia; 545.29.06) - Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 Threads)

Issue description

I updated my project from 4.1.1 to 4.2. I noticed that the TextureButton hover textures stopped appearing. After some experimentation I narrowed it down to occurring after setting mouse mode to confined.

Steps to reproduce

  1. Make a new project
  2. Make a new scene with TextureButton
  3. Attach a script and set mouse mode to confined
  4. Play the scene and moving the cursor over the TextureButton doesn't result in the hover texture

Minimal reproduction project

hover_issue.zip

rsubtil commented 10 months ago

Bisected to https://github.com/godotengine/godot/commit/59c13fea5da195fe550f95b247bf2b84daf05b1a (https://github.com/godotengine/godot/pull/80334), cc @Sauermann