kopia lustrzana https://github.com/backface/turtlestitch
fixed #584
rodzic
71c9103503
commit
ebbd0be87a
11
blocks.js
11
blocks.js
|
@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.blocks = '2014-September-22';
|
modules.blocks = '2014-September-30';
|
||||||
|
|
||||||
|
|
||||||
var SyntaxElementMorph;
|
var SyntaxElementMorph;
|
||||||
|
@ -2148,9 +2148,16 @@ BlockMorph.prototype.userMenu = function () {
|
||||||
this.thumbnail(0.5, 60, false),
|
this.thumbnail(0.5, 60, false),
|
||||||
function () {
|
function () {
|
||||||
var cpy = this.fullCopy(),
|
var cpy = this.fullCopy(),
|
||||||
nb = cpy.nextBlock();
|
nb = cpy.nextBlock(),
|
||||||
|
ide = myself.parentThatIsA(IDE_Morph);
|
||||||
if (nb) {nb.destroy(); }
|
if (nb) {nb.destroy(); }
|
||||||
cpy.pickUp(world);
|
cpy.pickUp(world);
|
||||||
|
if (ide) {
|
||||||
|
world.hand.grabOrigin = {
|
||||||
|
origin: ide.palette,
|
||||||
|
position: ide.palette.center()
|
||||||
|
};
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'only duplicate this block'
|
'only duplicate this block'
|
||||||
);
|
);
|
||||||
|
|
|
@ -2289,4 +2289,5 @@ ______
|
||||||
* BYOB: allow percent symbols in custom block texts (fix #361), thanks, @Gubolin!!
|
* BYOB: allow percent symbols in custom block texts (fix #361), thanks, @Gubolin!!
|
||||||
* Morphic: allow negative min/max values for sliders (fix #285), thanks, @Gubolin!!
|
* Morphic: allow negative min/max values for sliders (fix #285), thanks, @Gubolin!!
|
||||||
* Objects: fixed #378 (disable context menus for boolean representations)
|
* Objects: fixed #378 (disable context menus for boolean representations)
|
||||||
|
* Blocks: fixed #584
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue