DataPtr aData = myFeature->data();
AttributeSelectionListPtr aSelList = aData->selectionList(CollectionPlugin_Field::SELECTED_ID());
- if (!aSelList->isInitialized())
- return false;
std::string aTypeStr = aSelList->selectionType();
+ if (aTypeStr == "")
+ return false; // The attribute is not initialized
myShapeTypeCombo->setCurrentIndex(getSelectionType(aTypeStr));
// Get number of components
#include <ModelAPI_ResultConstruction.h>
#include <ModelAPI_ResultBody.h>
#include <ModelAPI_Tools.h>
+#include <ModelAPI_ResultField.h>
#include <Config_DataModelReader.h>
myObjBrowserMenus[ModelAPI_ResultBody::group()] = aList;
// Group menu
myObjBrowserMenus[ModelAPI_ResultGroup::group()] = aList;
+ myObjBrowserMenus[ModelAPI_ResultField::group()] = aList;
// Result part menu
myObjBrowserMenus[ModelAPI_ResultPart::group()] = aList;
//-------------------------------------
myViewerMenu[ModelAPI_ResultBody::group()] = aList;
// Group menu
myViewerMenu[ModelAPI_ResultGroup::group()] = aList;
+ myViewerMenu[ModelAPI_ResultField::group()] = aList;
//-------------------------------------
}