diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-06-21 12:24:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-21 12:24:44 +0200 |
commit | 67a29bab74837947fc05a889e573efd86457a88e (patch) | |
tree | 0f44e9eb9862a1d017801f1920bd43c2d3a0cefb /tools | |
parent | b3b1fdae85f845d92d749ec268877b87bb9bc47a (diff) | |
parent | 6d19d905cfe2fa426c9fd6470fa024255a7b0014 (diff) |
Merge pull request #5326 from MarianoGnu/issues
Don't create outlines from dummy meshes. Fixes #4718
Diffstat (limited to 'tools')
-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 f604e4c57c..c952feb1da 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()) { |