+ add overloaded constructor of SelectionObject

This commit is contained in:
wmayer
2016-04-29 18:10:44 +02:00
parent c249c6fb9c
commit 3edf272cc8
2 changed files with 8 additions and 0 deletions

View File

@@ -43,6 +43,13 @@ SelectionObject::SelectionObject()
{
}
SelectionObject::SelectionObject(App::DocumentObject* obj)
{
FeatName = obj->getNameInDocument();
DocName = obj->getDocument()->getName();
TypeName = obj->getTypeId().getName();
}
SelectionObject::~SelectionObject()
{
}