Skip to content

Commit

Permalink
Merge pull request #84374 from AThousandShips/format_fix
Browse files Browse the repository at this point in the history
Fix inverted condition when unwrapping lightmap
  • Loading branch information
YuriSizov committed Nov 3, 2023
2 parents c929f79 + 2cb94fa commit 64705bc
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 64705bc

Please sign in to comment.