diff options
| author | neikeq | 2015-11-25 00:46:44 +0100 |
|---|---|---|
| committer | neikeq | 2015-11-25 00:46:44 +0100 |
| commit | 8d97eef0fe634b8dba17d786123714fe83d5a4f8 (patch) | |
| tree | 2882a9386aa59c593ad7ea8ba5b0b3697a7ac90b /tools/editor/editor_node.h | |
| parent | 06957a8026bd20869fe11958d2cd8539c270354f (diff) | |
| download | godot-8d97eef0fe634b8dba17d786123714fe83d5a4f8.tar.gz godot-8d97eef0fe634b8dba17d786123714fe83d5a4f8.tar.zst godot-8d97eef0fe634b8dba17d786123714fe83d5a4f8.zip | |
Put 2D, 3D and Script editor index in enum
To avoid invalid index out of bounds mistakes.
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/editor_node.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/editor/editor_node.h b/tools/editor/editor_node.h index 7d8b97688..2b91929b9 100644 --- a/tools/editor/editor_node.h +++ b/tools/editor/editor_node.h @@ -529,6 +529,12 @@ protected: static void _bind_methods(); public: + enum EditorTable { + EDITOR_2D = 0, + EDITOR_3D, + EDITOR_SCRIPT + }; + static EditorNode* get_singleton() { return singleton; } |
