if new action data is the same as the old action data, don't re-unpack it

This commit is contained in:
Seth Alves 2015-06-26 18:13:53 -07:00
parent 7def9c2e28
commit 0739c46249

View file

@ -1432,6 +1432,9 @@ bool EntityItem::clearActions(EntitySimulation* simulation) {
}
void EntityItem::setActionData(QByteArray actionData) {
if (_actionData == actionData) {
return;
}
_actionData = actionData;
if (actionData.size() == 0) {
return;