fixed dynamic costume-inheritance for PASTE and CUT

pull/95/head
jmoenig 2020-11-11 12:11:56 +01:00
rodzic a924ab8741
commit b87b3d3043
3 zmienionych plików z 10 dodań i 5 usunięć

Wyświetl plik

@ -6,9 +6,11 @@
* added meaningful defaults to blocks in the palette that didn't already have them
* **Notable Fixes:**
* fixed a costume-shrinkWrap edgecase bug, thanks, Brian, for reporting it!
* fixed dynamic costume-inheritance for PASTE and CUT
### 2020-11-11
* objects: added meaningful defaults to blocks in the palette that didn't already have them
* threads: fixed dynamic costume-inheritance for PASTE and CUT
### 2020-11-09
* new dev version

Wyświetl plik

@ -9,7 +9,7 @@
<script src="src/symbols.js?version=2020-10-07"></script>
<script src="src/widgets.js?version=2020-10-06"></script>
<script src="src/blocks.js?version=2020-11-02"></script>
<script src="src/threads.js?version=2020-11-02"></script>
<script src="src/threads.js?version=2020-11-11"></script>
<script src="src/objects.js?version=2020-11-11"></script>
<script src="src/gui.js?version=2020-11-09"></script>
<script src="src/paint.js?version=2020-05-17"></script>

Wyświetl plik

@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, Map,
isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, BLACK,
TableFrameMorph, ColorSlotMorph, isSnapObject, newCanvas, Symbol, SVG_Costume*/
modules.threads = '2020-November-02';
modules.threads = '2020-November-11';
var ThreadManager;
var Process;
@ -4401,9 +4401,12 @@ Process.prototype.blitOn = function (name, mask, thisObj, stage) {
} else {
those = this.getObjectsNamed(name, thisObj, stage); // clones
}
those.forEach(each =>
this.blitOn(each, mask, thisObj, stage)
);
those.forEach(each => {
// only draw on same-named clones that don't dynamically the costume
if (!each.inheritsAttribute('costume #')) {
this.blitOn(each, mask, thisObj, stage);
}
});
};
// Process temporary cloning (Scratch-style)