mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
Update sprite when gradient colors are swapped
This commit is contained in:
parent
f035c44697
commit
4d3183a6ab
1 changed files with 2 additions and 1 deletions
|
@ -91,10 +91,11 @@ class FillColorIndicator extends React.Component {
|
|||
}
|
||||
handleSwap () {
|
||||
if (getSelectedLeafItems().length) {
|
||||
swapColorsInSelection(
|
||||
const isDifferent = swapColorsInSelection(
|
||||
isBitmap(this.props.format),
|
||||
this.props.textEditTarget);
|
||||
this.props.setSelectedItems();
|
||||
this._hasChanged = this._hasChanged || isDifferent;
|
||||
} else {
|
||||
let color1 = this.props.fillColor;
|
||||
let color2 = this.props.fillColor2;
|
||||
|
|
Loading…
Reference in a new issue