Suppress unnecessary "failed alias" warnings

when requested alias matches existing alias anyway (identical aliases can
be created on repeated sim resets)
This commit is contained in:
ThorstenB
2012-07-07 16:05:02 +02:00
parent fa58672f09
commit 51a17a7a0f

View File

@@ -797,9 +797,11 @@ SGPropertyNode::alias (SGPropertyNode * target)
else
if (_type == props::ALIAS)
{
if (_value.alias == target)
return true; // ok, identical alias requested
SG_LOG(SG_GENERAL, SG_ALERT,
"Failed to create alias at " << target->getPath() << ". "
"Source "<< getPath() << " is also an alias. Unsupported recursion.");
"Source "<< getPath() << " is already aliasing another property.");
}
else
if (_tied)