Fix bug when painting selection in mesh view provider

This commit is contained in:
wmayer
2012-09-28 12:33:26 +02:00
parent d83df821f0
commit 4256e574f5
2 changed files with 11 additions and 3 deletions

View File

@@ -160,7 +160,12 @@ void ViewProviderMeshFaceSet::updateData(const App::Property* prop)
}
showOpenEdges(OpenEdges.getValue());
highlightSelection();
std::vector<unsigned long> selection;
mesh->getFacetsFromSelection(selection);
if (selection.empty())
unhighlightSelection();
else
highlightSelection();
}
}