소스 검색

Fix inverted condition when unwrapping lightmap

A Thousand Ships 1 년 전
부모
커밋
2cb94fa362
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;