mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Fixed crash where the cursor was failing to load
The issue still exists though, but instead of crashing, the cursor just doesn't change. Probably a Godot bug?
This commit is contained in:
parent
4e31c1ed4b
commit
24e9eda644
1 changed files with 2 additions and 1 deletions
|
@ -251,7 +251,8 @@ func _input(event : InputEvent) -> void:
|
|||
Global.cursor_position_label.text = "[%s×%s] %s, %s" % [size.x, size.y, mouse_pos_floored.x, mouse_pos_floored.y]
|
||||
if !cursor_inside_canvas:
|
||||
cursor_inside_canvas = true
|
||||
Input.set_custom_mouse_cursor(Global.cursor_image, 0, Vector2(15, 15))
|
||||
if Global.cursor_image.get_data().get_size() != Vector2.ZERO:
|
||||
Input.set_custom_mouse_cursor(Global.cursor_image, 0, Vector2(15, 15))
|
||||
if Global.show_left_tool_icon:
|
||||
Global.left_cursor.visible = true
|
||||
if Global.show_right_tool_icon:
|
||||
|
|
Loading…
Add table
Reference in a new issue