diff --git a/panda/src/rocket/config_rocket.cxx b/panda/src/rocket/config_rocket.cxx index 26e4a83b5c..0bb8dd1c0a 100644 --- a/panda/src/rocket/config_rocket.cxx +++ b/panda/src/rocket/config_rocket.cxx @@ -53,6 +53,10 @@ init_librocket() { RocketInputHandler::init_type(); RocketRegion::init_type(); + if (rocket_cat->is_debug()) { + rocket_cat->debug() << "Initializing libRocket library.\n"; + } + RocketFileInterface* fi = new RocketFileInterface; Rocket::Core::SetFileInterface(fi); @@ -61,6 +65,10 @@ init_librocket() { Rocket::Core::Initialise(); + // Register that we have the libRocket system. + PandaSystem *ps = PandaSystem::get_global_ptr(); + ps->add_system("libRocket"); + #ifdef COMPILE_IN_DEFAULT_FONT #ifdef HAVE_FREETYPE // Load Panda's default compiled-in freetype font (Perspective Sans).