Move the Design tab's MCP code next to the MCP server

This commit is contained in:
SoftFever committed 2026-11-09 20:42:30 +08:00
1 parent 348c801203
commit 0b9c47be29
9 files changed
+170 -175

No files matched your search

+2 -2
View File
@@ -102,7 +102,7 @@
#include "Plater.hpp"
#ifdef SLIC3R_CAD
#include "slic3r/GUI/CAD/DesignPanel.hpp"
#include "slic3r/GUI/CAD/McpControl.hpp"
#include "slic3r/GUI/Mcp/McpToolsCad.hpp"
#endif
#include "WebViewDialog.hpp"
#include "../Utils/Process.hpp"
@@ -1642,7 +1642,7 @@ void MainFrame::init_tabpanel() {
// Experimental and heavy enough that building it unasked would cost more than it saves.
m_design_page = new LazyPage<DesignPanel>(this, TAB_ID_DESIGN, -1);
m_lazy_pages.push_back(m_design_page);
start_mcp_control_if_enabled(); // opens the MCP socket iff ORCA_CAD_MCP is set
Mcp::start_mcp_control_if_enabled(); // opens the MCP socket iff ORCA_CAD_MCP is set
}
#endif