CADSTAR: Parse missing NOTPICKABLE node

This commit is contained in:
Roberto Fernandez Bautista 2021-04-03 13:35:37 +01:00
parent 7d9ee76f64
commit 213d2fe977
2 changed files with 12 additions and 2 deletions

View File

@ -2209,6 +2209,10 @@ void CADSTAR_ARCHIVE_PARSER::ATTRCOL::Parse( XNODE* aNode, PARSER_CONTEXT* aCont
{
IsVisible = false;
}
else if( cNodeName == wxT( "NOTPICKABLE" ) )
{
IsPickable = false;
}
else
{
THROW_UNKNOWN_NODE_IO_ERROR( cNodeName, aNode->GetName() );
@ -2261,6 +2265,10 @@ void CADSTAR_ARCHIVE_PARSER::PARTNAMECOL::Parse( XNODE* aNode, PARSER_CONTEXT* a
{
IsVisible = false;
}
else if( cNodeName == wxT( "NOTPICKABLE" ) )
{
IsPickable = false;
}
else
{
THROW_UNKNOWN_NODE_IO_ERROR( cNodeName, aNode->GetName() );

View File

@ -1230,6 +1230,7 @@ public:
ATTRIBUTE_ID AttributeID;
COLOR_ID Color;
bool IsVisible = true;
bool IsPickable = true;
void Parse( XNODE* aNode, PARSER_CONTEXT* aContext ) override;
};
@ -1248,6 +1249,7 @@ public:
{
COLOR_ID Color;
bool IsVisible = true;
bool IsPickable = true;
void Parse( XNODE* aNode, PARSER_CONTEXT* aContext ) override;
};