get_panda_script_object log output

This commit is contained in:
David Rose 2009-10-22 20:35:03 +00:00
parent eaee7a00f8
commit 5aee8bd4dc
2 changed files with 3 additions and 0 deletions

View File

@ -481,6 +481,7 @@ set_wparams(const P3DWindowParams &wparams) {
////////////////////////////////////////////////////////////////////
P3D_object *P3DInstance::
get_panda_script_object() const {
nout << "get_panda_script_object\n";
return _panda_script_object;
}

View File

@ -597,6 +597,7 @@ get_panda_script_object() {
if (_p3d_inst != NULL) {
main = P3D_instance_get_panda_script_object(_p3d_inst);
}
nout << "get_panda_script_object, main = " << main << "\n";
_script_object = PPToplevelObject::make_new(this);
_script_object->set_main(main);
@ -1194,6 +1195,7 @@ create_instance() {
// Now that we have a true instance, initialize our
// script_object with the proper P3D_object pointer.
P3D_object *main = P3D_instance_get_panda_script_object(_p3d_inst);
nout << "new instance, setting main = " << main << "\n";
_script_object->set_main(main);
}