Part: Add deprecation warning for import/export
This commit is contained in:
committed by
Chris Hennes
parent
cde481536e
commit
deadbb5793
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user