Skip to content

Commit 5d7dd8f

Browse files
committed
Merge branch 'develop' of https://github.com/TurboWarp/scratch-vm into develop
2 parents aa17107 + 6222be2 commit 5d7dd8f

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
16+
- uses: actions/checkout@v4
1717
with:
1818
persist-credentials: false
1919
- name: Install Node.js
20-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: 20
23-
cache: npm
22+
node-version: 22
2423
- name: Install dependencies
2524
run: npm ci
2625
- name: Build playground
@@ -31,7 +30,7 @@ jobs:
3130
# It will still generate what it can, so it's safe to ignore the error
3231
continue-on-error: true
3332
- name: Upload artifact
34-
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa
33+
uses: actions/upload-pages-artifact@v3
3534
with:
3635
path: ./playground/
3736

@@ -47,4 +46,4 @@ jobs:
4746
steps:
4847
- name: Deploy to GitHub Pages
4948
id: deployment
50-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e
49+
uses: actions/deploy-pages@v4

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
11+
- uses: actions/checkout@v4
1212
with:
1313
persist-credentials: false
1414
- name: Install Node.js
15-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: 22
1818
cache: npm

src/extensions/scratch3_pen/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ class Scratch3PenBlocks {
137137
* @private
138138
*/
139139
_getPenLayerID () {
140-
if (this._penSkinId < 0 && this.runtime.renderer) {
141-
this._penSkinId = this.runtime.renderer.createPenSkin();
142-
this._penDrawableId = this.runtime.renderer.createDrawable(StageLayering.PEN_LAYER);
143-
this.runtime.renderer.updateDrawableSkinId(this._penDrawableId, this._penSkinId);
140+
const renderer = this.runtime.renderer;
141+
if (this._penSkinId < 0 && renderer) {
142+
this._penSkinId = renderer.createPenSkin();
143+
this._penDrawableId = renderer.createDrawable(StageLayering.PEN_LAYER);
144+
if (renderer.markDrawableAsNoninteractive) {
145+
renderer.markDrawableAsNoninteractive(this._penDrawableId);
146+
}
147+
renderer.updateDrawableSkinId(this._penDrawableId, this._penSkinId);
144148
}
145149
return this._penSkinId;
146150
}

src/io/video.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ class Video {
157157
if (renderer.markSkinAsPrivate) {
158158
renderer.markSkinAsPrivate(this._skinId);
159159
}
160+
if (renderer.markDrawableAsNoninteractive) {
161+
renderer.markDrawableAsNoninteractive(this._drawable);
162+
}
160163
}
161164

162165
// if we haven't already created and started a preview frame render loop, do so

0 commit comments

Comments
 (0)