Visible UM.Message makes PickingPass return far off, invalid co-ordinates #20488
Labels
Status: Triage
This ticket requires input from someone of the Cura team
Type: Bug
The code does not produce the intended behavior.
Cura Version
5.0..0-5.10.0
Operating System
Windows 11 / openSUSE Tumbleweed
Printer
Issue with Cura independent of printer.
Reproduction steps
The easiest way to test is using my new(ish) plugin: https://github.com/Slashee-the-Cow/TabAntiWarpingReborn
Download the current commit or the latest release. Install as usual.
Message(text = "You clicked!", title = "Grats!").show()
Actual results
Without the Message enabled in the code, all clicks will log valid co-ordinates returned by the PickingPass and create a tab.
With the Message enabled in the code, the first click will log valid co-ordinates and create the tab. Subsequent clicks while Message is still visible will log that the object being clicked is still in the same location, but that the PickingPass is returning co-ordinates well outside the build plate, at which point a function in the plugin kicks in and stops it creating a tab outside the build plate.
Wait until all Messages hide and the behaviour will repeat that cycle.
Expected results
Regardless of the presence of a UM.Message on screen, the PickingPass should log the correct co-ordinates and a support tab created where intended every click.
Add your .zip and screenshots here ⬇️
Behaviour is the same in 5.0, 5.6, 5.9 and 5.10 (I don't have time to test all of them). Tested in both Windows and Linux at multiple resolutions and window sizes. All exhibit the same behaviour.
The text was updated successfully, but these errors were encountered: