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