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