Merge pull request #64377 from Mickeon/rename-canvas-redraw

Rename `CanvasItem.update()` to `queue_redraw()`
This commit is contained in:
Rémi Verschelde 2022-08-30 14:47:41 +02:00 committed by GitHub
commit ae349d8227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 1354 additions and 1354 deletions

View file

@ -92,7 +92,7 @@ String EditorPerformanceProfiler::_create_label(float p_value, Performance::Moni
}
void EditorPerformanceProfiler::_monitor_select() {
monitor_draw->update();
monitor_draw->queue_redraw();
}
void EditorPerformanceProfiler::_monitor_draw() {
@ -283,12 +283,12 @@ void EditorPerformanceProfiler::_marker_input(const Ref<InputEvent> &p_event) {
float spacing = float(point_sep) / float(columns);
marker_frame = (rect.size.x - point.x) / spacing;
}
monitor_draw->update();
monitor_draw->queue_redraw();
return;
}
}
marker_key = "";
monitor_draw->update();
monitor_draw->queue_redraw();
}
}
@ -308,7 +308,7 @@ void EditorPerformanceProfiler::reset() {
_build_monitor_tree();
marker_key = "";
marker_frame = 0;
monitor_draw->update();
monitor_draw->queue_redraw();
}
void EditorPerformanceProfiler::update_monitors(const Vector<StringName> &p_names) {
@ -357,7 +357,7 @@ void EditorPerformanceProfiler::add_profile_frame(const Vector<float> &p_values)
E.value.update_value(data);
}
marker_frame++;
monitor_draw->update();
monitor_draw->queue_redraw();
}
List<float> *EditorPerformanceProfiler::get_monitor_data(const StringName &p_name) {