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
1 changed files with 1 additions and 1 deletions

View File

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