Merge pull request #705 from ctrlaltdavid/fix/bs-property-warning

Quiet warning for unused blendshapeCoefficients property
This commit is contained in:
kasenvr 2020-09-16 22:39:29 -04:00 committed by GitHub
commit 0236f49779
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -746,6 +746,10 @@ QString ModelEntityItem::getBlendshapeCoefficients() const {
}
void ModelEntityItem::setBlendshapeCoefficients(const QString& blendshapeCoefficients) {
if (blendshapeCoefficients.isEmpty()) {
return;
}
QJsonParseError error;
QJsonDocument newCoefficientsJSON = QJsonDocument::fromJson(blendshapeCoefficients.toUtf8(), &error);
if (error.error != QJsonParseError::NoError) {