summaryrefslogtreecommitdiff
path: root/tools/editor/plugins
diff options
context:
space:
mode:
authorFranklin Sobrinho <franklin_gs@hotmail.com>2015-04-03 10:28:30 -0300
committerFranklin Sobrinho <franklin_gs@hotmail.com>2015-04-03 10:28:30 -0300
commitf77349a4c2735daec9402f71a16e531b06fdddef (patch)
treea38ef8c9327ae46e4b31584679697cc1e7dafab1 /tools/editor/plugins
parentaa929bc1f10566e05762ed8cdbd6e44f5b560085 (diff)
Better fix
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r--tools/editor/plugins/mesh_editor_plugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/editor/plugins/mesh_editor_plugin.cpp b/tools/editor/plugins/mesh_editor_plugin.cpp
index 753146e040..f8c75e1cf5 100644
--- a/tools/editor/plugins/mesh_editor_plugin.cpp
+++ b/tools/editor/plugins/mesh_editor_plugin.cpp
@@ -32,6 +32,8 @@ void MeshInstanceEditor::_menu_option(int p_option) {
Ref<Mesh> mesh = node->get_mesh();
if (mesh.is_null()) {
+ err_dialog->set_text("Mesh is empty!");
+ err_dialog->popup_centered(Size2(100,80));
return;
}
@@ -238,6 +240,9 @@ MeshInstanceEditor::MeshInstanceEditor() {
add_child(outline_dialog);
outline_dialog->connect("confirmed",this,"_create_outline_mesh");
+ err_dialog = memnew( AcceptDialog );
+ add_child(err_dialog);
+
}