Skip to content

Commit

Permalink
fixed querying the pixels of an empty costume
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Aug 20, 2024
1 parent f3d1fc5 commit c01dab3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Snap! (BYOB) History

## in development:
* **Notable Fixes:**
* fixed querying the pixels of an empty costume

### 2024-08-20
* objects: fixed querying the pixels of an empty costume

## 10.0.4:
* **Notable Changes:**
Expand Down
2 changes: 1 addition & 1 deletion snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script src="src/widgets.js?version=2024-07-24"></script>
<script src="src/blocks.js?version=2024-06-10"></script>
<script src="src/threads.js?version=2024-08-12"></script>
<script src="src/objects.js?version=2024-08-07"></script>
<script src="src/objects.js?version=2024-08-20"></script>
<script src="src/scenes.js?version=2024-05-28"></script>
<script src="src/gui.js?version=2024-08-16"></script>
<script src="src/paint.js?version=2023-05-24"></script>
Expand Down
4 changes: 2 additions & 2 deletions src/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ CustomBlockDefinition, exportEmbroidery*/

/*jshint esversion: 11*/

modules.objects = '2024-August-07';
modules.objects = '2024-August-20';

var SpriteMorph;
var StageMorph;
Expand Down Expand Up @@ -13142,7 +13142,7 @@ Costume.prototype.pixels = function () {
i;

if (!this.contents.width || !this.contents.height) {
return pixels;
return new List(pixels);
}
src = this.contents.getContext('2d').getImageData(
0,
Expand Down

0 comments on commit c01dab3

Please sign in to comment.