Part: Add deprecation warning for import/export

This commit is contained in:
Pieter Hijma
2025-09-11 12:55:19 +02:00
committed by Chris Hennes
parent cde481536e
commit deadbb5793
4 changed files with 14 additions and 0 deletions

View File

@@ -155,6 +155,7 @@ using namespace Gui::DockWnd;
using namespace std;
namespace sp = std::placeholders;
FC_LOG_LEVEL_INIT("Gui")
Application* Application::Instance = nullptr;
@@ -892,6 +893,10 @@ void Application::exportTo(const char* FileName, const char* DocName, const char
string unicodepath = Base::Tools::escapedUnicodeFromUtf8(File.filePath().c_str());
unicodepath = Base::Tools::escapeEncodeFilename(unicodepath);
if (strcmp(Module, "Part") == 0) {
FC_WARN("Exporting with 'Part' is deprecated, use 'ImportGui' instead");
}
if (Module) {
try {
std::vector<App::DocumentObject*> sel =