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