瀏覽代碼

Merge pull request #84374 from AThousandShips/format_fix

Fix inverted condition when unwrapping lightmap
Yuri Sizov 1 年之前
父節點
當前提交
64705bc3af
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/mesh_instance_3d_editor_plugin.cpp

+ 1 - 1
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;