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

Do not try to highlight the stage when selecting

parent 0f9ebd36
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,9 @@ class TargetPane extends React.Component { ...@@ -110,7 +110,9 @@ class TargetPane extends React.Component {
} }
handleSelectSprite (id) { handleSelectSprite (id) {
this.props.vm.setEditingTarget(id); this.props.vm.setEditingTarget(id);
this.props.onHighlightTarget(id, Date.now()); if (this.props.stage && id !== this.props.stage.id) {
this.props.onHighlightTarget(id);
}
} }
handleSurpriseSpriteClick () { handleSurpriseSpriteClick () {
const item = spriteLibraryContent[Math.floor(Math.random() * spriteLibraryContent.length)]; const item = spriteLibraryContent[Math.floor(Math.random() * spriteLibraryContent.length)];
......
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