Skip to content

Commit

Permalink
Fix inverted condition when unwrapping lightmap
Browse files Browse the repository at this point in the history
  • Loading branch information
AThousandShips committed Nov 2, 2023
1 parent da0b1eb commit 2cb94fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/mesh_instance_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void MeshInstance3DEditor::_menu_option(int p_option) {
}

uint64_t format = array_mesh->surface_get_format(i);
if (format & Mesh::ArrayFormat::ARRAY_FORMAT_NORMAL) {
if (!(format & Mesh::ArrayFormat::ARRAY_FORMAT_NORMAL)) {
err_dialog->set_text(TTR("Normals are required for lightmap unwrap."));
err_dialog->popup_centered();
return;
Expand Down

0 comments on commit 2cb94fa

Please sign in to comment.