From ec04dbed0cfe655c85ffbe72158b7ffc707ece22 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 24 May 2018 21:40:48 +0200 Subject: [PATCH] gobj: fix static init ordering issue with VertexTransform cycler This comes up when building with DEBUG_THREADS; there is a PipelineCycler created at static init time, and the type tracking in Pipeline won't work properly if the CData's parent's TypeHandle has not yet been initialized. --- panda/src/gobj/vertexTransform.h | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/gobj/vertexTransform.h b/panda/src/gobj/vertexTransform.h index 51e84c9edb..ff106bf56e 100644 --- a/panda/src/gobj/vertexTransform.h +++ b/panda/src/gobj/vertexTransform.h @@ -67,6 +67,7 @@ private: virtual int complete_pointers(TypedWritable **plist, BamReader *manager); virtual void fillin(DatagramIterator &scan, BamReader *manager); virtual TypeHandle get_parent_type() const { + VertexTransform::init_type(); return VertexTransform::get_class_type(); }