Fix Issue #1594
This commit is contained in:
Juan Linietsky 2015-04-07 20:12:39 -03:00
commit 9c1fef866f

View file

@ -33,7 +33,7 @@ void MeshInstanceEditor::_menu_option(int p_option) {
Ref<Mesh> mesh = node->get_mesh(); Ref<Mesh> mesh = node->get_mesh();
if (mesh.is_null()) { if (mesh.is_null()) {
err_dialog->set_text("Mesh is empty!"); err_dialog->set_text("Mesh is empty!");
err_dialog->popup_centered(Size2(100,50)); err_dialog->popup_centered(Size2(100,80));
return; return;
} }
@ -240,6 +240,9 @@ MeshInstanceEditor::MeshInstanceEditor() {
add_child(outline_dialog); add_child(outline_dialog);
outline_dialog->connect("confirmed",this,"_create_outline_mesh"); outline_dialog->connect("confirmed",this,"_create_outline_mesh");
err_dialog = memnew( AcceptDialog );
add_child(err_dialog);
} }