diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-11-02 18:30:15 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-11-02 18:33:58 +0100 |
commit | 2cb94fa362aa091dc94504bf1980bd17cfef47f4 (patch) | |
tree | d306dccc1f6cfcb8a715e02da9cd1470d745a83f | |
parent | da0b1eb128a522bbef083b9f2a5cc2da6917c3d8 (diff) | |
download | redot-engine-2cb94fa362aa091dc94504bf1980bd17cfef47f4.tar.gz |
Fix inverted condition when unwrapping lightmap
-rw-r--r-- | editor/plugins/mesh_instance_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/mesh_instance_3d_editor_plugin.cpp b/editor/plugins/mesh_instance_3d_editor_plugin.cpp index fc220c56a8..04be44ffc8 100644 --- a/editor/plugins/mesh_instance_3d_editor_plugin.cpp +++ b/editor/plugins/mesh_instance_3d_editor_plugin.cpp @@ -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; |