mirror of
https://github.com/godotengine/godot.git
synced 2026-05-12 22:35:35 +00:00
Change set_drag_forwarding() to use callables.
* This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
This commit is contained in:
@@ -715,7 +715,7 @@ EditorPropertyArray::EditorPropertyArray() {
|
||||
edit->set_clip_text(true);
|
||||
edit->connect("pressed", callable_mp(this, &EditorPropertyArray::_edit_pressed));
|
||||
edit->set_toggle_mode(true);
|
||||
edit->set_drag_forwarding(this);
|
||||
edit->set_drag_forwarding_compat(this);
|
||||
edit->connect("draw", callable_mp(this, &EditorPropertyArray::_button_draw));
|
||||
add_child(edit);
|
||||
add_focusable(edit);
|
||||
|
||||
Reference in New Issue
Block a user