Browse Source

dtoolutil: fix PandaSystem TypeHandle static init issue

rdb 7 years ago
parent
commit
e9e18c2277
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dtool/src/dtoolutil/pandaSystem.cxx

+ 1 - 0
dtool/src/dtoolutil/pandaSystem.cxx

@@ -435,6 +435,7 @@ write(std::ostream &out) const {
 PandaSystem *PandaSystem::
 get_global_ptr() {
   if (_global_ptr == nullptr) {
+    init_type();
     _global_ptr = new PandaSystem;
   }