mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
get_panda_script_object log output
This commit is contained in:
parent
eaee7a00f8
commit
5aee8bd4dc
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user