Skip to content

Commit

Permalink
fixed a BlockSymbolMorph getRenderColor() null case glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Oct 19, 2024
1 parent 76b10b3 commit 05463a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## in development:

### 2024-09-19
* objects: fixed a BlockSymbolMorph getRenderColor() null case glitch

## 10.1.6:
* **Notable Fixes:**
* fixed #3409 - do not remove custom blocks referenced in customized primitives as "unused"
Expand Down
2 changes: 1 addition & 1 deletion snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script src="src/morphic.js?version=2024-10-09"></script>
<script src="src/symbols.js?version=2024-09-13"></script>
<script src="src/widgets.js?version=2024-07-24"></script>
<script src="src/blocks.js?version=2024-10-11"></script>
<script src="src/blocks.js?version=2024-10-19"></script>
<script src="src/threads.js?version=2024-10-15"></script>
<script src="src/objects.js?version=2024-10-18"></script>
<script src="src/scenes.js?version=2024-05-28"></script>
Expand Down
4 changes: 2 additions & 2 deletions src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ SVG_Costume, embedMetadataPNG, ThreadManager, snapEquals, display*/

// Global stuff ////////////////////////////////////////////////////////

modules.blocks = '2024-October-11';
modules.blocks = '2024-October-19';

var SyntaxElementMorph;
var BlockMorph;
Expand Down Expand Up @@ -2836,7 +2836,7 @@ function BlockSymbolMorph(name, size, color, shadowOffset, shadowColor) {
}

BlockSymbolMorph.prototype.getRenderColor = function () {
var block = this.parentThatIsA(BlockMorph);
var block = this.parentThatIsA(BlockMorph) || this;
if (IDE_Morph.prototype.isBright) {
if (this.isFading) {
return this.color.mixed(block.alpha, WHITE);
Expand Down

0 comments on commit 05463a8

Please sign in to comment.