#endif
#include "props.hxx"
+#include "vectorPropTemplates.hxx"
#include <algorithm>
#include <boost/functional/hash.hpp>
#include <boost/range.hpp>
-#include <simgear/math/SGMath.hxx>
-
#if PROPS_STANDALONE
#include <iostream>
#else
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)