summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2017-10-09 23:49:17 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2017-10-09 23:49:17 +0200
commit0c2e882210f8848475f7d9547af50a202f53a110 (patch)
tree8f6e149bb22426cb2023daa6b6bdeefce976f39b /main
parenteb920406ae0ddae54aafb866b23c218a12c18bb4 (diff)
downloadredot-engine-0c2e882210f8848475f7d9547af50a202f53a110.tar.gz
Adds 'exposed' field to ClassInfo
This field represents if the class is exposed to the scripting API. The value is 'true' if the class was registered manually ('ClassDB::register_*class()'), otherwise it's false (registered on '_post_initialize'). - Added missing registration of classes that are meant to be exposed.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index f9422cdf0b..1d7f19c372 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -256,6 +256,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
translation_server = memnew(TranslationServer);
performance = memnew(Performance);
+ ClassDB::register_class<Performance>();
globals->add_singleton(ProjectSettings::Singleton("Performance", performance));
GLOBAL_DEF("debug/settings/crash_handler/message", String("Please include this when reporting the bug on https://github.com/godotengine/godot/issues"));