I set a custom cursor for my attack mode and want to set it back to the default cursor once the attack is finished. Setting the cursor works fine, but when I reset the custom cursor to null, it doesn't change and remains the custom cursor instead. Am I doing something wrong? I checked in the debugger, Input.set_custom_mouse_cursor(null) is definitely called, but has no effect. I'm on a Linux system, if that makes any difference.
func arm_scissors(arm):
if arm and energy > ENERGY_PER_CUT:
$Scissors.visible = true
scissors_armed = true
Input.set_custom_mouse_cursor(target_cursor, 0, Vector2i(15,15))
else:
$Scissors.visible = false
scissors_armed = false
Input.set_custom_mouse_cursor(null)