Skip to content

Commit 4f9eb31

Browse files
committed
fixed STRETCH COSTUME reporter to again also accept a 4-column list of pixel data
1 parent 3ee0fca commit 4f9eb31

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

HISTORY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
## in development:
44
* **Notable Fixes:**
5-
* Thread halos: "afterglow" - display halos around running scripts for a couple of frames after their process has terminated (except for generic / custom event hats)
5+
* Thread halos: "afterglow" - (again) display halos around running scripts for a couple of frames after their process has terminated (except for generic / custom event hats)
6+
* fixed STRETCH COSTUME reporter to again also accept a 4-column list of pixel data
67

78
### 2025-03-21
89
* new dev version
910
* blocks, objects, threads: "afterglow" - display halos around running scripts for a couple of frames after their process has terminated (except for generic / custom event hats)
11+
* threads: fixed STRETCH COSTUME reporter to again also accept a 4-column list of pixel data
1012

1113
## 10.6.1:
1214
* **Notable Changes:**

src/threads.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7766,14 +7766,16 @@ Process.prototype.reportNewCostumeStretched = function (name, xP, yP) {
77667766
var cst, shp, height, width, dim, xStretch, yStretch, result;
77677767
if (name instanceof List) {
77687768
shp = name.quickShape();
7769-
if (shp.at(2) > 0) {
7769+
if (shp.at(2) > 4) {
77707770
height = shp.at(1);
77717771
width = shp.at(2);
77727772
dim = new List([height * width]);
77737773
if (shp.length() === 3) {
77747774
dim.add(shp.at(3));
77757775
}
77767776
cst = this.reportNewCostume(name.reshape(dim), width, height);
7777+
} else {
7778+
return this.reportNewCostume(name, xP, yP);
77777779
}
77787780
} else {
77797781
cst = this.costumeNamed(name);

0 commit comments

Comments
 (0)