Move z-index of construction segments behind normal segments

pull/827/head
Koen Schmeets 2020-11-21 12:42:15 +01:00 committed by phkahler
parent 8dcb2db6e6
commit f2850246fa
2 changed files with 5 additions and 2 deletions

View File

@ -472,13 +472,13 @@ void Entity::Draw(DrawAs how, Canvas *canvas) {
int zIndex;
if(IsPoint()) {
zIndex = 5;
zIndex = 6;
} else if(how == DrawAs::HIDDEN) {
zIndex = 2;
} else if(group != SS.GW.activeGroup) {
zIndex = 3;
} else {
zIndex = 4;
zIndex = 5;
}
hStyle hs;
@ -488,6 +488,9 @@ void Entity::Draw(DrawAs how, Canvas *canvas) {
hs.v = Style::NORMALS;
} else {
hs = Style::ForEntity(h);
if (hs.v == Style::CONSTRUCTION) {
zIndex = 4;
}
}
Canvas::Stroke stroke = Style::Stroke(hs);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB