Skip to content
Snippets Groups Projects
Unverified Commit c4d9f1a9 authored by chrisgarrity's avatar chrisgarrity Committed by GitHub
Browse files

Merge pull request #2970 from chrisgarrity/issue/pass-paint-rtl

Pass RTL state to paint editor - needed for https://github.com/LLK/scratch-paint/pull/617 to actually work.
parents 7643db8f a4712ee6
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ PaintEditorWrapper.propTypes = { ...@@ -56,6 +56,7 @@ PaintEditorWrapper.propTypes = {
name: PropTypes.string, name: PropTypes.string,
rotationCenterX: PropTypes.number, rotationCenterX: PropTypes.number,
rotationCenterY: PropTypes.number, rotationCenterY: PropTypes.number,
rtl: PropTypes.bool,
selectedCostumeIndex: PropTypes.number.isRequired, selectedCostumeIndex: PropTypes.number.isRequired,
vm: PropTypes.instanceOf(VM) vm: PropTypes.instanceOf(VM)
}; };
...@@ -74,6 +75,7 @@ const mapStateToProps = (state, {selectedCostumeIndex}) => { ...@@ -74,6 +75,7 @@ const mapStateToProps = (state, {selectedCostumeIndex}) => {
imageFormat: costume && costume.dataFormat, imageFormat: costume && costume.dataFormat,
imageId: targetId && `${targetId}${costume.skinId}`, imageId: targetId && `${targetId}${costume.skinId}`,
image: state.scratchGui.vm.getCostume(index), image: state.scratchGui.vm.getCostume(index),
rtl: state.locales.isRtl,
vm: state.scratchGui.vm vm: state.scratchGui.vm
}; };
}; };
......
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