fixed double compression of user_data

This commit is contained in:
matlabbe
2026-09-26 14:03:35 -07:00
parent 49108d9f80
commit e107b6bc8e
4 changed files with 52 additions and 6 deletions
+1 -1
View File
@@ -568,7 +568,7 @@ void SensorData::setUserData(const cv::Mat & userData, bool clearPreviousData)
else
{
_userDataRaw = userData;
if(!userData.empty())
if(!userData.empty() && _userDataCompressed.empty())
{
_userDataCompressed = compressData2(userData);
}