mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
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.
This commit is contained in:
parent
2e7bca90b0
commit
ec04dbed0c
@ -67,6 +67,7 @@ private:
|
|||||||
virtual int complete_pointers(TypedWritable **plist, BamReader *manager);
|
virtual int complete_pointers(TypedWritable **plist, BamReader *manager);
|
||||||
virtual void fillin(DatagramIterator &scan, BamReader *manager);
|
virtual void fillin(DatagramIterator &scan, BamReader *manager);
|
||||||
virtual TypeHandle get_parent_type() const {
|
virtual TypeHandle get_parent_type() const {
|
||||||
|
VertexTransform::init_type();
|
||||||
return VertexTransform::get_class_type();
|
return VertexTransform::get_class_type();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user