Signals: Manually port most of remaining connect_compat uses
It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
This commit is contained in:
@ -259,7 +259,7 @@ void GraphEdit::add_child_notify(Node *p_child) {
|
||||
gn->set_scale(Vector2(zoom, zoom));
|
||||
gn->connect("offset_changed", callable_mp(this, &GraphEdit::_graph_node_moved), varray(gn));
|
||||
gn->connect("raise_request", callable_mp(this, &GraphEdit::_graph_node_raised), varray(gn));
|
||||
gn->connect_compat("item_rect_changed", connections_layer, "update");
|
||||
gn->connect("item_rect_changed", callable_mp((CanvasItem *)connections_layer, &CanvasItem::update));
|
||||
_graph_node_moved(gn);
|
||||
gn->set_mouse_filter(MOUSE_FILTER_PASS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user