diff --git a/direct/src/plugin_npapi/Sources.pp b/direct/src/plugin_npapi/Sources.pp index 0b6d16ad3c..9b1e862770 100644 --- a/direct/src/plugin_npapi/Sources.pp +++ b/direct/src/plugin_npapi/Sources.pp @@ -19,7 +19,7 @@ nppanda3d_common.h \ ppDownloadRequest.h ppDownloadRequest.I \ ppInstance.h ppInstance.I \ - ppObject.h \ + ppObject.h ppObject.I \ startup.h #define INCLUDED_SOURCES \ diff --git a/direct/src/plugin_npapi/ppObject.I b/direct/src/plugin_npapi/ppObject.I new file mode 100644 index 0000000000..b19c5bb1c9 --- /dev/null +++ b/direct/src/plugin_npapi/ppObject.I @@ -0,0 +1,25 @@ +// Filename: ppObject.I +// Created by: drose (03Jul09) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Function: PPObject::set_p3d_object +// Access: Public +// Description: Returns the p3d_object this PPObject maps to. This +// may be NULL if the object is not fully initialized. +//////////////////////////////////////////////////////////////////// +inline P3D_object *PPObject:: +get_p3d_object() const { + return _p3d_object; +}