Added API version and hashing to ObjectTypeDB

This commit is contained in:
Juan Linietsky 2016-09-14 19:37:37 -03:00
parent a4156f1f0a
commit a75f5f039e
5 changed files with 212 additions and 2 deletions

View file

@ -994,8 +994,11 @@ Error Main::setup2() {
}
}
#ifdef TOOLS_ENABLED
ObjectTypeDB::set_current_api(ObjectTypeDB::API_EDITOR);
EditorNode::register_editor_types();
ObjectTypeDB::register_type<PCKPacker>(); // todo: move somewhere else
ObjectTypeDB::set_current_api(ObjectTypeDB::API_CORE);
#endif
MAIN_PRINT("Main: Load Scripts, Modules, Drivers");
@ -1022,6 +1025,8 @@ Error Main::setup2() {
_start_success=true;
locale=String();
ObjectTypeDB::set_current_api(ObjectTypeDB::API_NONE); //no more api is registered at this point
MAIN_PRINT("Main: Done");
return OK;