diff --git a/panda/src/pipeline/config_pipeline.cxx b/panda/src/pipeline/config_pipeline.cxx index 8f82307c86..60f077688f 100644 --- a/panda/src/pipeline/config_pipeline.cxx +++ b/panda/src/pipeline/config_pipeline.cxx @@ -12,6 +12,7 @@ */ #include "config_pipeline.h" +#include "cycleData.h" #include "mainThread.h" #include "externalThread.h" #include "genericThread.h" @@ -70,6 +71,7 @@ init_libpipeline() { } initialized = true; + CycleData::init_type(); MainThread::init_type(); ExternalThread::init_type(); GenericThread::init_type(); diff --git a/panda/src/pipeline/cycleData.cxx b/panda/src/pipeline/cycleData.cxx index 62359cd451..346a6e8042 100644 --- a/panda/src/pipeline/cycleData.cxx +++ b/panda/src/pipeline/cycleData.cxx @@ -13,6 +13,9 @@ #include "cycleData.h" +#ifdef DO_PIPELINING +TypeHandle CycleData::_type_handle; +#endif /** * diff --git a/panda/src/pipeline/cycleData.h b/panda/src/pipeline/cycleData.h index bd28d4bc60..de90bdf226 100644 --- a/panda/src/pipeline/cycleData.h +++ b/panda/src/pipeline/cycleData.h @@ -65,6 +65,22 @@ public: virtual TypeHandle get_parent_type() const; virtual void output(std::ostream &out) const; + +#ifdef DO_PIPELINING +public: + static TypeHandle get_class_type() { + return _type_handle; + } + + static void init_type() { + NodeReferenceCount::init_type(); + register_type(_type_handle, "CycleData", + NodeReferenceCount::get_class_type()); + } + +private: + static TypeHandle _type_handle; +#endif }; INLINE std::ostream &