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:
@@ -4921,7 +4921,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
|
||||
|
||||
c->add_child(viewport);
|
||||
surface = memnew(Control);
|
||||
surface->set_drag_forwarding(this);
|
||||
surface->set_drag_forwarding_compat(this);
|
||||
add_child(surface);
|
||||
surface->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
surface->set_clip_contents(true);
|
||||
|
||||
Reference in New Issue
Block a user