Skip to content

Commit

Permalink
+ add overloaded constructor of SelectionObject
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 29, 2016
1 parent 330df84 commit 9a38d63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Gui/SelectionObject.cpp
Expand Up @@ -43,6 +43,13 @@ SelectionObject::SelectionObject()
{
}

SelectionObject::SelectionObject(App::DocumentObject* obj)
{
FeatName = obj->getNameInDocument();
DocName = obj->getDocument()->getName();
TypeName = obj->getTypeId().getName();
}

SelectionObject::~SelectionObject()
{
}
Expand Down
1 change: 1 addition & 0 deletions src/Gui/SelectionObject.h
Expand Up @@ -44,6 +44,7 @@ class GuiExport SelectionObject : public Base::BaseClass
public:
/** Constructs a SelectionObject object. */
SelectionObject();
SelectionObject(App::DocumentObject*);
virtual ~SelectionObject();
/**
* The default implementation returns an instance of @ref SelectionObjectPy.
Expand Down

0 comments on commit 9a38d63

Please sign in to comment.