You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
@@ -92,7 +92,7 @@ void EditorVisualProfiler::add_frame_metric(const Metric &p_metric) {
|
||||
}
|
||||
|
||||
void EditorVisualProfiler::clear() {
|
||||
int metric_size = EditorSettings::get_singleton()->get("debugger/profiler_frame_history_size");
|
||||
int metric_size = EDITOR_GET("debugger/profiler_frame_history_size");
|
||||
metric_size = CLAMP(metric_size, 60, 10000);
|
||||
frame_metrics.clear();
|
||||
frame_metrics.resize(metric_size);
|
||||
|
||||
Reference in New Issue
Block a user