Skip to content

Commit

Permalink
Temporarily disable the level editor, it will be re-enabled with the …
Browse files Browse the repository at this point in the history
…upcoming Level Editor release.
  • Loading branch information
luciusDXL committed Jul 17, 2024
1 parent 5c1af14 commit 6c07cc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TheForceEngine/TFE_Editor/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

namespace TFE_Editor
{
// Set to 1 to enable
#define ENABLE_LEVEL_EDITOR 0

enum EditorMode
{
EDIT_ASSET_BROWSER = 0,
Expand Down Expand Up @@ -890,9 +893,13 @@ namespace TFE_Editor
// TODO: Other asset editors.
if (asset->type == TYPE_LEVEL)
{
#if ENABLE_LEVEL_EDITOR
s_editorMode = EDIT_ASSET;
s_editorAssetType = asset->type;
LevelEditor::init(asset);
#else
showMessageBox("Warning", "The level editor is disabled and\nwill be enabled in the upcoming\nlevel editor release.");
#endif
}
else
{
Expand Down

0 comments on commit 6c07cc0

Please sign in to comment.