hla: Initially request update for subscribed unowned attributes.

This commit is contained in:
Mathias Froehlich
2011-10-04 20:55:44 +02:00
parent 7a98f89e1b
commit 64ce231705

View File

@@ -133,6 +133,8 @@ public:
} else {
_attributeData[i].setUpdateEnabled(false);
_attributeData[i].setOwned(false);
if (getAttributeSubscribed(i))
_attributeData[i].setRequestUpdate(true);
}
}
_attributeData.resize(numAttributes);
@@ -140,9 +142,13 @@ public:
if (getAttributePublished(i)) {
_attributeData[i].setUpdateEnabled(true);
_attributeData[i].setOwned(owned);
if (!owned && getAttributeSubscribed(i))
_attributeData[i].setRequestUpdate(true);
} else {
_attributeData[i].setUpdateEnabled(false);
_attributeData[i].setOwned(false);
if (getAttributeSubscribed(i))
_attributeData[i].setRequestUpdate(true);
}
}
}