Don't set the line color for every visual feature as it's always the same

Originally committed to SVN as r4427.
This commit is contained in:
Thomas Goyne 2010-06-04 03:07:46 +00:00
parent 2659b79036
commit fe65f778b1

View file

@ -301,6 +301,7 @@ void VisualTool<FeatureType>::DrawAllFeatures() {
dragListOK = true; dragListOK = true;
} }
SetLineColour(colour[0],1.0f,2);
for (unsigned i = 0; i < features.size(); ++i) { for (unsigned i = 0; i < features.size(); ++i) {
int fill; int fill;
if (&features[i] == curFeature) if (&features[i] == curFeature)
@ -310,7 +311,6 @@ void VisualTool<FeatureType>::DrawAllFeatures() {
else else
fill = 1; fill = 1;
SetFillColour(colour[fill],0.6f); SetFillColour(colour[fill],0.6f);
SetLineColour(colour[0],1.0f,2);
features[i].Draw(*this); features[i].Draw(*this);
} }
} }