diff --git a/src/containers/costume-library.jsx b/src/containers/costume-library.jsx index 2686c840827bbbcfc91e4fe594d3df9f69db22ef..83c24b191b5b068fe6e485f7b5be4b941a5bded3 100644 --- a/src/containers/costume-library.jsx +++ b/src/containers/costume-library.jsx @@ -25,12 +25,10 @@ class CostumeLibrary extends React.PureComponent { ]); } handleItemSelected (item) { - const rotationCenterX = item.dataFormat === 'svg' ? item.rotationCenterX : item.rotationCenterX / 2; - const rotationCenterY = item.dataFormat === 'svg' ? item.rotationCenterY : item.rotationCenterY / 2; const vmCostume = { name: item.name, - rotationCenterX, - rotationCenterY, + rotationCenterX: item.rotationCenterX, + rotationCenterY: item.rotationCenterY, bitmapResolution: item.bitmapResolution, skinId: null }; diff --git a/src/containers/costume-tab.jsx b/src/containers/costume-tab.jsx index 5f99f8f23de51c1c51b99980bfd0bb82c20a5fd8..475ad2fc4475e63b6f1ce9fdfd1a70ee2c016693 100644 --- a/src/containers/costume-tab.jsx +++ b/src/containers/costume-tab.jsx @@ -179,13 +179,11 @@ class CostumeTab extends React.Component { } handleSurpriseCostume () { const item = costumeLibraryContent[Math.floor(Math.random() * costumeLibraryContent.length)]; - const rotationCenterX = item.dataFormat === 'svg' ? item.rotationCenterX : item.rotationCenterX / 2; - const rotationCenterY = item.dataFormat === 'svg' ? item.rotationCenterY : item.rotationCenterY / 2; const vmCostume = { name: item.name, md5: item.md5ext, - rotationCenterX: rotationCenterX, - rotationCenterY: rotationCenterY, + rotationCenterX: item.rotationCenterX, + rotationCenterY: item.rotationCenterY, bitmapResolution: item.bitmapResolution, skinId: null };