Skip to content
Snippets Groups Projects
Commit b046a224 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Pass in only the props that the paint editor needs to prevent rerender

parent 5a9679fa
Branches
Tags
No related merge requests found
......@@ -218,7 +218,6 @@ class CostumeTab extends React.Component {
>
{target.costumes ?
<PaintEditorWrapper
{...props}
selectedCostumeIndex={this.state.selectedCostumeIndex}
/> :
null
......
......@@ -59,7 +59,8 @@ const mapStateToProps = (state, {selectedCostumeIndex}) => {
name: costume && costume.name,
rotationCenterX: costume && costume.rotationCenterX,
rotationCenterY: costume && costume.rotationCenterY,
svgId: editingTarget && `${editingTarget}${costume.skinId}`
svgId: editingTarget && `${editingTarget}${costume.skinId}`,
vm: state.vm
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment