Improve error message when there are no meshes to bake for 3D occlusion

This commit is contained in:
Hugo Locurcio 2021-06-23 15:31:02 +02:00
parent e55be041d8
commit 30fcf3045a
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -56,7 +56,7 @@ void OccluderInstance3DEditorPlugin::_bake_select_file(const String &p_file) {
} break;
case OccluderInstance3D::BAKE_ERROR_NO_MESHES: {
EditorNode::get_singleton()->show_warning(TTR("No meshes to bake."));
EditorNode::get_singleton()->show_warning(TTR("No meshes to bake.\nMake sure there is at least one MeshInstance3D node in the scene whose visual layers are part of the OccluderInstance3D's Bake Mask property."));
break;
}
default: {