diff options
| author | MarianoGNU | 2016-06-20 19:57:21 -0300 |
|---|---|---|
| committer | MarianoGNU | 2016-06-20 20:03:16 -0300 |
| commit | 6d19d905cfe2fa426c9fd6470fa024255a7b0014 (patch) | |
| tree | a154a4c2922279f47c23754bfccb8afdaeb03c2b /tools/editor/plugins/mesh_instance_editor_plugin.cpp | |
| parent | e9d2c9ad51f7251ec39ccc7a890735bc1225a448 (diff) | |
| download | godot-6d19d905cfe2fa426c9fd6470fa024255a7b0014.tar.gz godot-6d19d905cfe2fa426c9fd6470fa024255a7b0014.tar.zst godot-6d19d905cfe2fa426c9fd6470fa024255a7b0014.zip | |
Diffstat (limited to 'tools/editor/plugins/mesh_instance_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/mesh_instance_editor_plugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/editor/plugins/mesh_instance_editor_plugin.cpp b/tools/editor/plugins/mesh_instance_editor_plugin.cpp index f604e4c57..c952feb1d 100644 --- a/tools/editor/plugins/mesh_instance_editor_plugin.cpp +++ b/tools/editor/plugins/mesh_instance_editor_plugin.cpp @@ -183,6 +183,12 @@ void MeshInstanceEditor::_create_outline_mesh() { return; } + if (mesh->get_surface_count() == 0) { + err_dialog->set_text(TTR("Mesh has not surface to create outlines from!")); + err_dialog->popup_centered_minsize(); + return; + } + Ref<Mesh> mesho = mesh->create_outline(outline_size->get_val()); if (mesho.is_null()) { |
