From: Nicolas RECHATIN Date: Wed, 18 Oct 2023 15:27:01 +0000 (+0200) Subject: fix : remove material file from export widget X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a37e184ac29405652126f908c92a283b4600844f;p=modules%2Fshaper.git fix : remove material file from export widget --- diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index ed49b8b21..2a52e61b8 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -149,8 +149,6 @@ void ExchangePlugin_ExportFeature::initAttributes() ModelAPI_AttributeString::typeId()); data()->addAttribute(ExchangePlugin_ExportFeature::MAIN_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(ExchangePlugin_ExportFeature::MAT_FILE_ID(), - ModelAPI_AttributeString::typeId()); // to support previous version of document, move the selection list // if the type of export operation is XAO diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h index 2804f68c0..cf5186906 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h @@ -180,12 +180,6 @@ public: static const std::string MY_MAIN_OBJECT_ID("root_main_object"); return MY_MAIN_OBJECT_ID; } - /// attribute name of materials file - inline static const std::string& MAT_FILE_ID() - { - static const std::string MY_MAT_FILE_ID("mat_file"); - return MY_MAT_FILE_ID; - } /// Default constructor EXCHANGEPLUGIN_EXPORT ExchangePlugin_ExportFeature(); diff --git a/src/ExchangePlugin/export_widget.xml b/src/ExchangePlugin/export_widget.xml index 097c95556..829c2f00e 100644 --- a/src/ExchangePlugin/export_widget.xml +++ b/src/ExchangePlugin/export_widget.xml @@ -109,8 +109,6 @@ geometrical_selection="true"> - -