kopia lustrzana https://github.com/backface/turtlestitch
guard against broken SVG costumes when loading a project
rodzic
defe37f9e8
commit
b502d5dbb8
|
@ -5,6 +5,7 @@
|
||||||
* export / import sprite-local custom block definitions, under construction
|
* export / import sprite-local custom block definitions, under construction
|
||||||
* **Notable Changes:**
|
* **Notable Changes:**
|
||||||
* **Notable Fixes:**
|
* **Notable Fixes:**
|
||||||
|
* guard against broken SVG costumes when loading a project
|
||||||
* **Documentation Updates:**
|
* **Documentation Updates:**
|
||||||
* **Translation Updates:**
|
* **Translation Updates:**
|
||||||
|
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
* byob, store, gui: export / import sprite-local custom block definitions, under construction
|
* byob, store, gui: export / import sprite-local custom block definitions, under construction
|
||||||
* byob, gui: adapted library import dialog to the new format
|
* byob, gui: adapted library import dialog to the new format
|
||||||
* byob: added collecting dependencies for sprite-local custom blocks
|
* byob: added collecting dependencies for sprite-local custom blocks
|
||||||
|
* objects: guard against broken SVG costumes when loading a project
|
||||||
|
|
||||||
## 7.3.0:
|
## 7.3.0:
|
||||||
* **New Features:**
|
* **New Features:**
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<script src="src/widgets.js?version=2021-17-09"></script>
|
<script src="src/widgets.js?version=2021-17-09"></script>
|
||||||
<script src="src/blocks.js?version=2022-03-07"></script>
|
<script src="src/blocks.js?version=2022-03-07"></script>
|
||||||
<script src="src/threads.js?version=2022-03-03"></script>
|
<script src="src/threads.js?version=2022-03-03"></script>
|
||||||
<script src="src/objects.js?version=2022-03-01"></script>
|
<script src="src/objects.js?version=2022-03-09"></script>
|
||||||
<script src="src/scenes.js?version=2022-03-03"></script>
|
<script src="src/scenes.js?version=2022-03-03"></script>
|
||||||
<script src="src/gui.js?version=2022-03-09"></script>
|
<script src="src/gui.js?version=2022-03-09"></script>
|
||||||
<script src="src/paint.js?version=2021-07-05"></script>
|
<script src="src/paint.js?version=2021-07-05"></script>
|
||||||
|
|
|
@ -87,7 +87,7 @@ BlockVisibilityDialogMorph, CostumeIconMorph, SoundIconMorph*/
|
||||||
|
|
||||||
/*jshint esversion: 6*/
|
/*jshint esversion: 6*/
|
||||||
|
|
||||||
modules.objects = '2022-March-04';
|
modules.objects = '2022-March-09';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
@ -10352,11 +10352,11 @@ Costume.prototype.center = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
Costume.prototype.width = function () {
|
Costume.prototype.width = function () {
|
||||||
return this.contents.width;
|
return this.contents ? this.contents.width : 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
Costume.prototype.height = function () {
|
Costume.prototype.height = function () {
|
||||||
return this.contents.height;
|
return this.contents ? this.contents.height : 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
Costume.prototype.bounds = function () {
|
Costume.prototype.bounds = function () {
|
||||||
|
|
Ładowanie…
Reference in New Issue