X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Import.cpp;h=312d59ac133156ea546db7e3db7d644be4922ced;hb=241b1234365e3f65b9b84c7c8eccf072be54b68c;hp=42601ee113c3817c736a6fcb96c45b79b3c7669e;hpb=ce18c435519e1d2762d34cd02900c9b9210e5cba;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Import.cpp b/src/ExchangePlugin/ExchangePlugin_Import.cpp index 42601ee11..312d59ac1 100644 --- a/src/ExchangePlugin/ExchangePlugin_Import.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Import.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2021 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -31,6 +31,7 @@ #include #include #include +#include static const std::wstring THE_NEW_PART_STR(L"New Part"); @@ -88,6 +89,23 @@ void ExchangePlugin_Import::initAttributes() data()->addAttribute(STEP_MATERIALS_ID(), ModelAPI_AttributeBoolean::typeId()); data()->addAttribute(STEP_COLORS_ID(), ModelAPI_AttributeBoolean::typeId()); data()->addAttribute(STEP_SCALE_INTER_UNITS_ID(), ModelAPI_AttributeBoolean::typeId()); + +#ifndef HAVE_SALOME + ModelAPI_Session::get()->validators()->registerNotObligatory( + getKind(), ExchangePlugin_Import::IMPORT_TYPE_ID()); + ModelAPI_Session::get()->validators()->registerNotObligatory( + getKind(), ExchangePlugin_Import::STEP_FILE_PATH_ID()); + ModelAPI_Session::get()->validators()->registerNotObligatory( + getKind(), ExchangePlugin_Import::STEP_TARGET_PART_ID()); + ModelAPI_Session::get()->validators()->registerNotObligatory( + getKind(), ExchangePlugin_Import::STEP_TARGET_PARTS_LIST_ID()); + ModelAPI_Session::get()->validators()->registerNotObligatory( + getKind(), ExchangePlugin_Import::STEP_MATERIALS_ID()); + ModelAPI_Session::get()->validators()->registerNotObligatory( + getKind(), ExchangePlugin_Import::STEP_COLORS_ID()); + ModelAPI_Session::get()->validators()->registerNotObligatory( + getKind(), ExchangePlugin_Import::STEP_SCALE_INTER_UNITS_ID()); +#endif } /*