Skip to content

Commit 3864f0d

Browse files
committed
Small fix for drag and drop
1 parent a7b56a1 commit 3864f0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,13 @@ func _can_drop_data(_position:Vector2, data:Variant) -> bool:
426426
return data is TreeItem
427427

428428

429-
func _drop_data(_position:Vector2, item:Variant) -> void:
430-
var to_item := get_item_at_position(position)
429+
func _drop_data(drop_position:Vector2, item:Variant) -> void:
430+
var to_item := get_item_at_position(drop_position)
431431

432432
if !to_item:
433433
return
434434

435-
var drop_section := get_drop_section_at_position(position)
435+
var drop_section := get_drop_section_at_position(drop_position)
436436
var parent: TreeItem = null
437437
if (drop_section == 1 and to_item.get_meta('type') == "FOLDER") or to_item == get_root():
438438
parent = to_item

0 commit comments

Comments
 (0)