You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Remove Signal connect binds
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
This commit is contained in:
@@ -434,10 +434,10 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
|
||||
for (int j = 0; j < binds.size(); j++) {
|
||||
argptrs[j] = &binds[j];
|
||||
}
|
||||
callable = callable.bind(argptrs, binds.size());
|
||||
callable = callable.bindp(argptrs, binds.size());
|
||||
}
|
||||
|
||||
cfrom->connect(snames[c.signal], callable, varray(), CONNECT_PERSIST | c.flags);
|
||||
cfrom->connect(snames[c.signal], callable, CONNECT_PERSIST | c.flags);
|
||||
}
|
||||
|
||||
//Node *s = ret_nodes[0];
|
||||
@@ -892,9 +892,7 @@ Error SceneState::_parse_connections(Node *p_owner, Node *p_node, HashMap<String
|
||||
cd.signal = _nm_get_string(c.signal.get_name(), name_map);
|
||||
cd.flags = c.flags;
|
||||
cd.unbinds = unbinds;
|
||||
for (int i = 0; i < c.binds.size(); i++) { // TODO: This could be removed now.
|
||||
cd.binds.push_back(_vm_get_variant(c.binds[i], variant_map));
|
||||
}
|
||||
|
||||
for (int i = 0; i < binds.size(); i++) {
|
||||
cd.binds.push_back(_vm_get_variant(binds[i], variant_map));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user