Add new ‘listener-safe’ SGProperty attribute

Used in FG to make certain tied properties as safe to use with
listeners, and hence suppress the warning.
This commit is contained in:
James Turner 2019-10-20 13:03:15 +01:00
parent 4b1a53367f
commit 0a7514c47b
2 changed files with 2 additions and 1 deletions

View File

@ -849,7 +849,7 @@ SGPropertyNode::trace_read () const
* Last used attribute
* Update as needed when enum Attribute is changed
*/
const int SGPropertyNode::LAST_USED_ATTRIBUTE = PROTECTED;
const int SGPropertyNode::LAST_USED_ATTRIBUTE = LISTENER_SAFE;
/**
* Default constructor: always creates a root node.

View File

@ -821,6 +821,7 @@ public:
USERARCHIVE = 64,
PRESERVE = 128,
PROTECTED = 1 << 8,
LISTENER_SAFE = 1 << 9, /// it's safe to listen to this property, even if it's tied
// beware: if you add another attribute here,
// also update value of "LAST_USED_ATTRIBUTE".
};