Move z-index of construction segments behind normal segments
parent
8dcb2db6e6
commit
f2850246fa
|
@ -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 |
Loading…
Reference in New Issue