You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Don't create outlines from dummy meshes. Fixes #4718
This commit is contained in:
@@ -183,6 +183,12 @@ void MeshInstanceEditor::_create_outline_mesh() {
|
|||||||
return;
|
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());
|
Ref<Mesh> mesho = mesh->create_outline(outline_size->get_val());
|
||||||
|
|
||||||
if (mesho.is_null()) {
|
if (mesho.is_null()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user