mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Vectors: Use clear() and has().
Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
This commit is contained in:
parent
ea12094f19
commit
fc27636999
36 changed files with 62 additions and 64 deletions
|
|
@ -755,7 +755,7 @@ void AnimationNodeStateMachineEditor::_state_machine_draw() {
|
|||
//now scroll it to draw
|
||||
state_machine_draw->draw_style_box(sb, nr.node);
|
||||
|
||||
if (playing && (blend_from == name || current == name || travel_path.find(name) != -1)) {
|
||||
if (playing && (blend_from == name || current == name || travel_path.has(name))) {
|
||||
state_machine_draw->draw_style_box(playing_overlay, nr.node);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue