Fix corruption a pattern after using Union Details tool.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-02-08 11:06:17 +02:00
parent a1774149f6
commit 5edc241426
2 changed files with 15 additions and 0 deletions

View file

@ -142,6 +142,19 @@ void VAbstractNode::GroupVisibility(quint32 object, bool visible)
Q_UNUSED(visible)
}
//---------------------------------------------------------------------------------------------------------------------
void VAbstractNode::ToolCreation(const Source &typeCreation)
{
if (typeCreation == Source::FromGui || typeCreation == Source::FromTool)
{
AddToFile();
}
else
{
RefreshDataInFile();
}
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief AddToModeling add tag to modeling tag current pattern peace.

View file

@ -67,6 +67,8 @@ public:
protected:
ParentType parentType;
virtual void ToolCreation(const Source &typeCreation) Q_DECL_OVERRIDE;
protected:
/** @brief idNodenode id. */
quint32 idNode;