Fix incorrect rendering of XYZ axes in the bottom left corner.

This commit is contained in:
whitequark 2016-10-10 13:31:29 +00:00
parent a8e723381c
commit 9bcba4b92c

View File

@ -557,7 +557,7 @@ void Entity::Draw(DrawAs how, Canvas *canvas) {
} }
stroke.layer = (asReference) ? Canvas::Layer::FRONT : Canvas::Layer::NORMAL; stroke.layer = (asReference) ? Canvas::Layer::FRONT : Canvas::Layer::NORMAL;
if(how == DrawAs::DEFAULT) { if(how != DrawAs::HOVERED && how != DrawAs::SELECTED) {
// Always draw the x, y, and z axes in red, green, and blue; // Always draw the x, y, and z axes in red, green, and blue;
// brighter for the ones at the bottom left of the screen, // brighter for the ones at the bottom left of the screen,
// dimmer for the ones at the model origin. // dimmer for the ones at the model origin.