Skip to content

Commit

Permalink
Part: fix TopoShape::getElementTypes()
Browse files Browse the repository at this point in the history
This also fixes Std_BoxElementSelection in Gui/CommandView.cpp, which
relies on this API through Data::ComplexGeoData::getElementTypes().
  • Loading branch information
realthunder authored and wwmayer committed Oct 8, 2019
1 parent 714d208 commit 7c76d2f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Mod/Part/App/TopoShape.cpp
Expand Up @@ -310,11 +310,7 @@ TopoShape::TopoShape(const TopoShape& shape)

std::vector<const char*> TopoShape::getElementTypes(void) const
{
std::vector<const char*> temp(3);
temp.push_back("Vertex");
temp.push_back("Edge");
temp.push_back("Face");

static const std::vector<const char*> temp = {"Face","Edge","Vertex"};
return temp;
}

Expand Down

0 comments on commit 7c76d2f

Please sign in to comment.