修正flip拼写错误的问题
parent
2f9b988dac
commit
483afb9fb4
|
@ -47,6 +47,7 @@ LayerWrapper::LayerWrapper(QJsonObject json, FolderLayerWrapper*parent, ElementM
|
|||
transformJson.value("scale").toObject().value("y").toDouble()};
|
||||
property.rotation = {transformJson.value("rotation").toDouble()};
|
||||
property.flipX = { transformJson.value("flipX").toBool() };
|
||||
qDebug() << property.flipX;
|
||||
property.flipY = { transformJson.value("flipY").toBool() };
|
||||
selected = false;
|
||||
hidden = false;
|
||||
|
@ -262,8 +263,8 @@ QJsonObject LayerWrapper::toJson() const
|
|||
QJsonObject transformJson;
|
||||
transformJson.insert("offset", QJsonObject({ {"x", property.offset.x()}, {"y", property.offset.y()} }));
|
||||
transformJson.insert("scale", QJsonObject({ {"x", property.scale.x()}, {"y", property.scale.y()} }));
|
||||
transformJson.insert("filpX", property.flipX);
|
||||
transformJson.insert("filpY", property.flipY);
|
||||
transformJson.insert("flipX", property.flipX);
|
||||
transformJson.insert("flipY", property.flipY);
|
||||
transformJson.insert("rotation", property.rotation);
|
||||
json.insert("transform", transformJson);
|
||||
return json;
|
||||
|
|
Loading…
Reference in New Issue