mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
Avoid making unnecessary copies of LocalVector
This commit is contained in:
parent
8c729f0f34
commit
1324c7d06a
5 changed files with 12 additions and 16 deletions
|
|
@ -361,8 +361,7 @@ bool VisualShaderGraphPlugin::is_node_has_parameter_instances_relatively(VisualS
|
|||
}
|
||||
}
|
||||
|
||||
LocalVector<int> prev_connected_nodes;
|
||||
visual_shader->get_prev_connected_nodes(p_type, p_node, prev_connected_nodes);
|
||||
const LocalVector<int> &prev_connected_nodes = visual_shader->get_prev_connected_nodes(p_type, p_node);
|
||||
|
||||
for (const int &E : prev_connected_nodes) {
|
||||
result = is_node_has_parameter_instances_relatively(p_type, E);
|
||||
|
|
@ -5012,8 +5011,7 @@ void VisualShaderEditor::_update_next_previews(int p_node_id) {
|
|||
}
|
||||
|
||||
void VisualShaderEditor::_get_next_nodes_recursively(VisualShader::Type p_type, int p_node_id, LocalVector<int> &r_nodes) const {
|
||||
LocalVector<int> next_connections;
|
||||
visual_shader->get_next_connected_nodes(p_type, p_node_id, next_connections);
|
||||
const LocalVector<int> &next_connections = visual_shader->get_next_connected_nodes(p_type, p_node_id);
|
||||
|
||||
for (int node_id : next_connections) {
|
||||
r_nodes.push_back(node_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue