mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
clear_value()
This commit is contained in:
parent
09fe2062c2
commit
a673b4367a
@ -102,6 +102,19 @@ set_string_value(const string &string_value) {
|
||||
_core->make_local_value()->set_string_value(string_value);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ConfigVariable::clear_value
|
||||
// Access: Published
|
||||
// Description: Removes the value assigned to this variable, and lets
|
||||
// its original value (as read from the prc files) show
|
||||
// through.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void ConfigVariable::
|
||||
clear_value() {
|
||||
nassertv(_core != (ConfigVariableCore *)NULL);
|
||||
_core->clear_local_value();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ConfigVariable::get_num_words
|
||||
// Access: Published
|
||||
|
@ -46,6 +46,7 @@ PUBLISHED:
|
||||
|
||||
INLINE const string &get_string_value() const;
|
||||
INLINE void set_string_value(const string &value);
|
||||
INLINE void clear_value();
|
||||
|
||||
INLINE int get_num_words() const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user