Godot Engine – Multi-platform 2D and 3D game engine
Fix the null check on `mesh2`
AR-DEV-107f605014548
diff --git a/editor/scene/3d/mesh_instance_3d_editor_plugin.cpp b/editor/scene/3d/mesh_instance_3d_editor_plugin.cppindex e2d29beb6af..7fdc14169e4 100644--- a/editor/scene/3d/mesh_instance_3d_editor_plugin.cpp+++ b/editor/scene/3d/mesh_instance_3d_editor_plugin.cpp@@ -465,7 +465,7 @@ void MeshInstance3DEditor::_menu_option(int p_option) {} break;case MENU_OPTION_CREATE_UV2: {Ref<Mesh> mesh2 = node->get_mesh();- if (mesh.is_null()) {+ if (mesh2.is_null()) {err_dialog->set_text(TTR("No mesh to unwrap."));err_dialog->popup_centered();return;