Skip to content
Snippets Groups Projects
Commit ef9f8a1f authored by DD's avatar DD
Browse files

send down rotation center

parent 94a05bf3
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,8 @@ class CostumeTab extends React.Component {
this.props.vm.deleteCostume(costumeIndex);
}
handleUpdateSvg (svg) {
this.props.vm.updateSvg(this.state.selectedCostumeIndex, svg);
handleUpdateSvg (svg, rotationCenterX, rotationCenterY) {
this.props.vm.updateSvg(this.state.selectedCostumeIndex, svg, rotationCenterX, rotationCenterY);
}
render () {
......@@ -100,6 +100,8 @@ class CostumeTab extends React.Component {
{target.costumes ?
<PaintEditor
svg={this.props.vm.getCostumeSvg(this.state.selectedCostumeIndex)}
rotationCenterX={this.props.vm.editingTarget.sprite.costumes[this.state.selectedCostumeIndex].rotationCenterX}
rotationCenterY={this.props.vm.editingTarget.sprite.costumes[this.state.selectedCostumeIndex].rotationCenterY}
onUpdateSvg={this.handleUpdateSvg}
/>
: null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment