You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -340,7 +340,7 @@ void Sprite2DEditor::_convert_to_mesh_2d_node() {
|
||||
}
|
||||
|
||||
void Sprite2DEditor::_convert_to_polygon_2d_node() {
|
||||
if (computed_outline_lines.empty()) {
|
||||
if (computed_outline_lines.is_empty()) {
|
||||
err_dialog->set_text(TTR("Invalid geometry, can't create polygon."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
@@ -398,7 +398,7 @@ void Sprite2DEditor::_convert_to_polygon_2d_node() {
|
||||
}
|
||||
|
||||
void Sprite2DEditor::_create_collision_polygon_2d_node() {
|
||||
if (computed_outline_lines.empty()) {
|
||||
if (computed_outline_lines.is_empty()) {
|
||||
err_dialog->set_text(TTR("Invalid geometry, can't create collision polygon."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
@@ -420,7 +420,7 @@ void Sprite2DEditor::_create_collision_polygon_2d_node() {
|
||||
}
|
||||
|
||||
void Sprite2DEditor::_create_light_occluder_2d_node() {
|
||||
if (computed_outline_lines.empty()) {
|
||||
if (computed_outline_lines.is_empty()) {
|
||||
err_dialog->set_text(TTR("Invalid geometry, can't create light occluder."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user