Skip to content

Commit

Permalink
Linux build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sirjuddington committed Jan 24, 2025
1 parent 576ce3b commit 69ac6ef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MapEditor/UI/PropsPanel/MapObjectPropsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,11 @@ void MapObjectPropsPanel::setupTypeUDMF(map::ObjectType objtype)
void MapObjectPropsPanel::updateGroupVisibility() const
{
for (auto group : groups_)
#if wxCHECK_VERSION(3, 3, 0)
group->Hide(!group->HasVisibleChildren(), wxPGPropertyValuesFlags::DontRecurse);
#else
group->Hide(!group->HasVisibleChildren(), wxPG_DONT_RECURSE);
#endif
}

// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -878,7 +882,11 @@ void MapObjectPropsPanel::openObjects(vector<MapObject*>& objects)

// Show all groups initially
for (auto group : groups_)
#if wxCHECK_VERSION(3, 3, 0)
group->Hide(false, wxPGPropertyValuesFlags::DontRecurse);
#else
group->Hide(false, wxPG_DONT_RECURSE);
#endif

// Setup property grid for the object type
bool is_udmf = (mapeditor::editContext().mapDesc().format == MapFormat::UDMF);
Expand Down
1 change: 1 addition & 0 deletions src/Scripting/Export/Archive/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "Archive/EntryType/EntryType.h"
#include "General/Misc.h"
#include "Scripting/Export/Export.h"
#include "Scripting/Lua.h"
#include "Scripting/LuaBridge.h"

using namespace slade;
Expand Down
1 change: 1 addition & 0 deletions src/Scripting/Export/Archives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "Archive/ArchiveManager.h"
#include "Archive/EntryType/EntryType.h"
#include "Export.h"
#include "Scripting/Lua.h"
#include "Scripting/LuaBridge.h"

using namespace slade;
Expand Down
1 change: 1 addition & 0 deletions src/Scripting/Export/Graphics/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "Graphics/Palette/Palette.h"
#include "Graphics/SImage/SImage.h"
#include "Scripting/Export/Export.h"
#include "Scripting/Lua.h"
#include "Scripting/LuaBridge.h"

using namespace slade;
Expand Down

0 comments on commit 69ac6ef

Please sign in to comment.