mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Fix inverted condition when unwrapping lightmap
This commit is contained in:
parent
da0b1eb128
commit
2cb94fa362
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user