fixed #2715 - reposition sprite after "editRotationPointOnly"

pull/95/head
jmoenig 2020-11-17 13:55:36 +01:00
rodzic 3efdb673e9
commit a7bcd64a01
4 zmienionych plików z 10 dodań i 5 usunięć

Wyświetl plik

@ -7,12 +7,14 @@
* **Notable Fixes:**
* fixed a costume fitting issue, thanks, Joan!
* fixed keyboard formula input for "power of", "neg", "lg" and "id"
* fixed repositioning sprite after "editRotationPointOnly"
* **Translation Updates:**
* Spanish, thanks, Joan!
### 2020-11-1/
* blocks, objects: refactored and unified default values for block templates
* Spanish translation update, thanks, Joan!
* gui, objects: fixed #2715 - reposition sprite after "editRotationPointOnly"
### 2020-11-15
* new dev version

Wyświetl plik

@ -11,7 +11,7 @@
<script src="src/blocks.js?version=2020-11-17"></script>
<script src="src/threads.js?version=2020-11-15"></script>
<script src="src/objects.js?version=2020-11-17"></script>
<script src="src/gui.js?version=2020-11-15"></script>
<script src="src/gui.js?version=2020-11-17"></script>
<script src="src/paint.js?version=2020-05-17"></script>
<script src="src/lists.js?version=2020-07-01"></script>
<script src="src/byob.js?version=2020-10-07"></script>

Wyświetl plik

@ -78,7 +78,7 @@ Animation, BoxMorph, BlockEditorMorph, BlockDialogMorph, Note, ZERO, BLACK*/
// Global stuff ////////////////////////////////////////////////////////
modules.gui = '2020-November-15';
modules.gui = '2020-November-17';
// Declarations
@ -8756,7 +8756,7 @@ CostumeIconMorph.prototype.editCostume = function () {
CostumeIconMorph.prototype.editRotationPointOnly = function () {
var ide = this.parentThatIsA(IDE_Morph);
this.object.editRotationPointOnly(this.world());
this.object.editRotationPointOnly(this.world(), ide);
ide.hasChangedMedia = true;
};

Wyświetl plik

@ -9854,14 +9854,17 @@ Costume.prototype.edit = function (aWorld, anIDE, isnew, oncancel, onsubmit) {
);
};
Costume.prototype.editRotationPointOnly = function (aWorld) {
Costume.prototype.editRotationPointOnly = function (aWorld, anIDE) {
var editor = new CostumeEditorMorph(this),
action,
dialog,
txt;
editor.fixLayout();
action = () => editor.accept();
action = () => {
editor.accept();
anIDE.currentSprite.wearCostume(this, true); // don't shadow
};
dialog = new DialogBoxMorph(this, action);
txt = new TextMorph(
localize('click or drag crosshairs to move the rotation center'),