Replace that line with this:
add_child(model.node());
Note that you need to call MyObject::init_type() at static init time (or in any case, before you start using your object) to initialise the type system properly.
Replace that line with this:
add_child(model.node());
Note that you need to call MyObject::init_type() at static init time (or in any case, before you start using your object) to initialise the type system properly.