pir-serious-game-ethics/addons/dialogic/Editor/Events/Common/SpinBoxPreventDnD.gd

9 lines
188 B
GDScript3
Raw Normal View History

2021-04-07 22:32:31 +02:00
tool
extends SpinBox
func can_drop_data(position, data):
# this prevents locking the mouse
# on some operating systems
# due to a godot editor bug with SpinBox drag/drop
return false