You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Replace size() == 0 with is_empty().
This commit is contained in:
@@ -131,7 +131,7 @@ void SpriteFramesEditor::_sheet_preview_draw() {
|
||||
}
|
||||
_draw_shadowed_line(split_sheet_preview, draw_offset + Vector2(0, draw_size.y), Vector2(draw_size.x, 0), Vector2(0, 1), line_color, shadow_color);
|
||||
|
||||
if (frames_selected.size() == 0) {
|
||||
if (frames_selected.is_empty()) {
|
||||
split_sheet_dialog->get_ok_button()->set_disabled(true);
|
||||
split_sheet_dialog->set_ok_button_text(TTR("No Frames Selected"));
|
||||
return;
|
||||
@@ -1699,7 +1699,7 @@ bool SpriteFramesEditor::can_drop_data_fw(const Point2 &p_point, const Variant &
|
||||
if (String(d["type"]) == "files") {
|
||||
Vector<String> files = d["files"];
|
||||
|
||||
if (files.size() == 0) {
|
||||
if (files.is_empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user