mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 13:11:12 -05:00
Merge branch 'fix-stage-sprite-clicked'
Conflicts: src/blocks/Block.as
This commit is contained in:
commit
293b1560b0
1 changed files with 1 additions and 0 deletions
|
@ -473,6 +473,7 @@ public class Block extends Sprite {
|
|||
public function duplicate(forClone:Boolean, forStage:Boolean = false):Block {
|
||||
var newSpec:String = spec;
|
||||
if (forStage && op == 'whenClicked') newSpec = 'when Stage clicked';
|
||||
if (!forStage && op == 'whenClicked') newSpec = 'when this sprite clicked';
|
||||
var dup:Block = new Block(newSpec, type, (int)(forClone ? -1 : base.color), op);
|
||||
dup.isRequester = isRequester;
|
||||
dup.parameterNames = parameterNames;
|
||||
|
|
Loading…
Reference in a new issue