-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Description
Versions
(list all versions where you have replicated the bug)
- Godot: 4.6 beta 1 (both headless and normal)
- GUT: branch godot 4.6
- OS: Linux Ubuntu 22.04
The Bug
Steps To Reproduce
-
Copy all files from this
bug_report_gutfolder to your Godot project:simple_drag_test.tscn- Minimal test scenesimple_draggable.gd- Draggable ColorRectsimple_slot.gd- Drop target PanelContainertest_minimal_drag.gd- GUT test
-
Ensure GUT is installed in
addons/gut/
Run the Test
Headless mode:
godot --headless -d -s addons/gut/gut_cmdln.gd -gdir=res://bug_report_gut -gtest=test_minimal_drag.gd -gexitWith GUI:
godot -d -s addons/gut/gut_cmdln.gd -gdir=res://bug_report_gut -gtest=test_minimal_drag.gd -gexit_get_drag_data()is never called_can_drop_data()is never called_drop_data()is never called- Item remains in original slot (Slot1)
- No drag gesture is detected by Godot
But when running manually:
!!! _get_drag_data CALLED !!!
_can_drop_data called
!!! _drop_data CALLED !!!
What else I tested :
# Approach 1: Input singleton
var sender = InputSender.new(Input)
# Approach 2: Viewport
var sender = InputSender.new(get_viewport())
# Approach 3: Control node directly
var sender = InputSender.new(control_node)
Metadata
Metadata
Assignees
Labels
No labels