Skip to content

Commit

Permalink
fix WED-1507 exclusion polys not greyed out when locked
Browse files Browse the repository at this point in the history
  • Loading branch information
meikelm committed Jun 24, 2024
1 parent bf34007 commit 1a93303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/WEDCore/README.WorldEditor
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ WED 2.6.0b3
- minor accuracy improvement in map projection for very large objetcs
- force default dir for most file open dialogs to be current scenery pack
- fix duplicated exclusion zones at full scenery import
- WED-1507 fix exclusion polygons still green when locked

WED 2.6.0b2 6/3/24
Features:
Expand Down
3 changes: 2 additions & 1 deletion src/WEDMap/WED_StructureLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ bool WED_StructureLayer::DrawEntityStructure (bool inCurrent, IGISEntity * ent
auto parent = dynamic_cast<WED_Thing*>(entity)->GetParent();
if (parent->GetClass() == WED_ExclusionPoly::sClass)
{
glColor4fv(WED_Color_RGBA_Alpha(wed_Link, 1.0, storage));
glColor4fv(WED_Color_RGBA_Alpha((locked || selected) ? struct_color : wed_Link, 1.0, storage));
//glColor4fv(WED_Color_RGBA_Alpha(struct_color, 1.0, storage));
if (gExportTarget < wet_xplane_1200)
{
Bbox2 bnds;
Expand Down

0 comments on commit 1a93303

Please sign in to comment.