We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c1af14 commit 6c07cc0Copy full SHA for 6c07cc0
TheForceEngine/TFE_Editor/editor.cpp
@@ -29,6 +29,9 @@
29
30
namespace TFE_Editor
31
{
32
+ // Set to 1 to enable
33
+ #define ENABLE_LEVEL_EDITOR 0
34
+
35
enum EditorMode
36
37
EDIT_ASSET_BROWSER = 0,
@@ -890,9 +893,13 @@ namespace TFE_Editor
890
893
// TODO: Other asset editors.
891
894
if (asset->type == TYPE_LEVEL)
892
895
896
+ #if ENABLE_LEVEL_EDITOR
897
s_editorMode = EDIT_ASSET;
898
s_editorAssetType = asset->type;
899
LevelEditor::init(asset);
900
+ #else
901
+ showMessageBox("Warning", "The level editor is disabled and\nwill be enabled in the upcoming\nlevel editor release.");
902
+ #endif
903
}
904
else
905
0 commit comments