Skip to content

Commit 75661ba

Browse files
committed
Fix for 4.2
1 parent b192575 commit 75661ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/dialogic/Editor/TimelineEditor/TextEditor/timeline_editor_text.gd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ func _gui_input(event):
9292
func toggle_comment() -> void:
9393
var cursor: Vector2 = Vector2(get_caret_column(), get_caret_line())
9494
var selection := Rect2i(
95-
Vector2i(get_selection_origin_line(), get_selection_origin_column()),
95+
Vector2i(get_selection_line(), get_selection_column()),
96+
# TODO When ditching godot 4.2, switch to this, the above methods have been deprecated in 4.3
97+
#Vector2i(get_selection_origin_line(), get_selection_origin_column()),
9698
Vector2i(get_caret_line(), get_caret_column()))
9799
var from: int = cursor.y
98100
var to: int = cursor.y

0 commit comments

Comments
 (0)