| 561 | } |
| 562 | |
| 563 | bool EditorProgressGDDC::step(const String &p_state, int p_step, bool p_force_refresh) { |
| 564 | if (GDREProgressDialog::get_singleton()) { |
| 565 | return GDREProgressDialog::get_singleton()->task_step(task, p_state, p_step, p_force_refresh); |
| 566 | } else { |
| 567 | #ifdef TOOLS_ENABLED |
| 568 | if (EditorNode::get_singleton()) { |
| 569 | if (Thread::is_main_thread()) { |
| 570 | return EditorNode::progress_task_step(task, p_state, p_step, p_force_refresh); |
| 571 | } else { |
| 572 | EditorNode::progress_task_step_bg(task, p_step); |
| 573 | return false; |
| 574 | } |
| 575 | } |
| 576 | #endif |
| 577 | } |
| 578 | return false; |
| 579 | } |
| 580 | |
| 581 | void EditorProgressGDDC::set_progress_length(bool p_indeterminate, int p_new_amount) { |
| 582 | if (GDREProgressDialog::get_singleton()) { |
no test coverage detected