Commit 574e9e5b authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

I can't say I fully understand the implications of what I did here but it seems to fix #1694.


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17102 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 561c5c78
......@@ -149,7 +149,7 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode)
{
// draw selection
if( polyline_.vertex_selections_available())
if( polyline_.vertex_selections_available() && !selectedVertexIndexBuffer_.empty())
{
// save old values
float point_size_old = _state.point_size();
......@@ -173,7 +173,7 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode)
if (_drawMode & DrawModes::WIREFRAME) {
// draw selection
if (polyline_.edge_selections_available()) {
if (polyline_.edge_selections_available() && !selectedEdgeIndexBuffer_.empty()) {
// save old values
float line_width_old = _state.line_width();
_state.set_color(Vec4f(1, 0, 0, 1));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment