mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
clear_class_definition
This commit is contained in:
parent
c06abc5887
commit
ae7dcc4253
@ -183,6 +183,11 @@ int PPBrowserObject::get_repr( char* buffer, int buffer_length ) const
|
|||||||
return (int)result.GetLength();
|
return (int)result.GetLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PPBrowserObject::clear_class_definition()
|
||||||
|
{
|
||||||
|
_browser_object_class = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
P3D_class_definition* PPBrowserObject::get_class_definition()
|
P3D_class_definition* PPBrowserObject::get_class_definition()
|
||||||
{
|
{
|
||||||
if ( _browser_object_class == NULL )
|
if ( _browser_object_class == NULL )
|
||||||
|
@ -34,6 +34,8 @@ public:
|
|||||||
P3D_object* params[], int num_params ) const;
|
P3D_object* params[], int num_params ) const;
|
||||||
P3D_object* eval( const std::string &expression ) const;
|
P3D_object* eval( const std::string &expression ) const;
|
||||||
|
|
||||||
|
static void clear_class_definition();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PPBrowserObject( );
|
PPBrowserObject( );
|
||||||
static P3D_class_definition* get_class_definition( );
|
static P3D_class_definition* get_class_definition( );
|
||||||
|
@ -317,6 +317,10 @@ int PPInstance::UnloadPlugin()
|
|||||||
{
|
{
|
||||||
s_hP3DPluginDll = NULL;
|
s_hP3DPluginDll = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This pointer is no longer valid and must be reset for next
|
||||||
|
// time.
|
||||||
|
PPBrowserObject::clear_class_definition();
|
||||||
}
|
}
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user