diff --git a/dtool/src/prc/configPage.I b/dtool/src/prc/configPage.I index b9be539506..60329157a2 100644 --- a/dtool/src/prc/configPage.I +++ b/dtool/src/prc/configPage.I @@ -111,6 +111,19 @@ get_trust_level() const { return _trust_level; } +//////////////////////////////////////////////////////////////////// +// Function: ConfigPage::set_trust_level +// Access: Published +// Description: Explicitly sets the trust level on this particular +// page. Note that any subsequent changes to the page, +// or to any variable declarations on it, will reset the +// trust level to zero. +//////////////////////////////////////////////////////////////////// +INLINE void ConfigPage:: +set_trust_level(int trust_level) { + _trust_level = trust_level; +} + //////////////////////////////////////////////////////////////////// // Function: ConfigPage::get_signature // Access: Published diff --git a/dtool/src/prc/configPage.h b/dtool/src/prc/configPage.h index e9a7e9fda3..3506d35411 100644 --- a/dtool/src/prc/configPage.h +++ b/dtool/src/prc/configPage.h @@ -53,6 +53,7 @@ PUBLISHED: INLINE int get_page_seq() const; INLINE int get_trust_level() const; + INLINE void set_trust_level(int trust_level); INLINE const string &get_signature() const; void clear();