size() <= 0 and size() < 1.

This commit is contained in:
Yufeng Ying 2025-03-20 10:16:05 +08:00
parent 4f4031a675
commit 7a1a970c25
12 changed files with 16 additions and 16 deletions

View file

@ -6063,7 +6063,7 @@ bool CanvasItemEditorViewport::_create_instance(Node *p_parent, const String &p_
}
void CanvasItemEditorViewport::_perform_drop_data() {
ERR_FAIL_COND(selected_files.size() <= 0);
ERR_FAIL_COND(selected_files.is_empty());
_remove_preview();