Fix incorrect type hierarchy of HermiteCurve, PandaNode, ShaderGenerator

This commit is contained in:
rdb 2017-02-20 00:32:05 +01:00
parent 53258af876
commit b113d9db55
3 changed files with 9 additions and 9 deletions

View File

@ -163,7 +163,9 @@ public:
return _type_handle; return _type_handle;
} }
static void init_type() { static void init_type() {
register_type(_type_handle, "HermiteCurve"); PiecewiseCurve::init_type();
register_type(_type_handle, "HermiteCurve",
PiecewiseCurve::get_class_type());
} }
virtual TypeHandle get_type() const { virtual TypeHandle get_type() const {
return get_class_type(); return get_class_type();

View File

@ -799,12 +799,10 @@ public:
return _type_handle; return _type_handle;
} }
static void init_type() { static void init_type() {
TypedWritable::init_type(); TypedWritableReferenceCount::init_type();
ReferenceCount::init_type();
Namable::init_type(); Namable::init_type();
register_type(_type_handle, "PandaNode", register_type(_type_handle, "PandaNode",
TypedWritable::get_class_type(), TypedWritableReferenceCount::get_class_type(),
ReferenceCount::get_class_type(),
Namable::get_class_type()); Namable::get_class_type());
CData::init_type(); CData::init_type();
Down::init_type(); Down::init_type();

View File

@ -151,9 +151,9 @@ public:
return _type_handle; return _type_handle;
} }
static void init_type() { static void init_type() {
TypedObject::init_type(); TypedReferenceCount::init_type();
register_type(_type_handle, "ShaderGenerator", register_type(_type_handle, "ShaderGenerator",
TypedObject::get_class_type()); TypedReferenceCount::get_class_type());
} }
virtual TypeHandle get_type() const { virtual TypeHandle get_type() const {
return get_class_type(); return get_class_type();
@ -173,9 +173,9 @@ public:
return _type_handle; return _type_handle;
} }
static void init_type() { static void init_type() {
TypedObject::init_type(); TypedReferenceCount::init_type();
register_type(_type_handle, "ShaderGenerator", register_type(_type_handle, "ShaderGenerator",
TypedObject::get_class_type()); TypedReferenceCount::get_class_type());
} }
virtual TypeHandle get_type() const { virtual TypeHandle get_type() const {
return get_class_type(); return get_class_type();