Fix rallypoint color after deserialization following 505a10cef6.

Differential Revision: https://code.wildfiregames.com/D826
Refs #4618, D623

This was SVN commit r20049.
This commit is contained in:
elexis
2017-08-27 16:05:20 +00:00
parent 83ee8cd62e
commit eb70d83b67
@@ -199,6 +199,7 @@ public:
virtual void Deserialize(const CParamNode& paramNode, IDeserializer& UNUSED(deserialize))
{
Init(paramNode);
// The dependent components have not been deserialized, so the color is loaded on first SetDisplayed
}
virtual void HandleMessage(const CMessage& msg, bool UNUSED(global))
@@ -316,6 +317,13 @@ public:
{
m_Displayed = displayed;
// Set color after all dependent components are deserialized
if (displayed && m_LineColor.r < 0)
{
UpdateLineColor();
ConstructAllOverlayLines();
}
// move the markers out of oblivion and back into the real world, or vice-versa
UpdateMarkers();