mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Use translated default values
This commit is contained in:
parent
92d77bc6e3
commit
0c7de21dc3
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ public class BlockMenus implements DragClient {
|
|||
var attr:String = block.args[0].argValue;
|
||||
var validAttrs:Array = obj.isStage ? ['backdrop #', 'background #', 'backdrop name', 'volume'] :
|
||||
['x position', 'y position', 'direction', 'costume #', 'costume name', 'size', 'volume'];
|
||||
if ((validAttrs.indexOf(attr) == -1) && !obj.ownsVar(attr)) block.args[0].setArgValue(obj.isStage ? 'backdrop #' : 'x position');
|
||||
if ((validAttrs.indexOf(attr) == -1) && !obj.ownsVar(attr)) block.args[0].setArgValue(obj.isStage ? Translator.map('backdrop #') : Translator.map('x position'));
|
||||
}
|
||||
Scratch.app.setSaveNeeded();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue