kopia lustrzana https://github.com/backface/turtlestitch
shadow (a clone's) costumes when setting its rotation coordinates
rodzic
a8f0358e53
commit
acb21e38a6
|
@ -5,11 +5,14 @@
|
||||||
* **New Features:**
|
* **New Features:**
|
||||||
* **Notable Changes:**
|
* **Notable Changes:**
|
||||||
* **Notable Fixes:**
|
* **Notable Fixes:**
|
||||||
|
* setting a clone's rotation coordinates shadows its inherited costumes
|
||||||
* **Documentation Updates:**
|
* **Documentation Updates:**
|
||||||
* **Translation Updates:**
|
* **Translation Updates:**
|
||||||
|
|
||||||
### 2021-12-18
|
### 2021-12-18
|
||||||
* new dev version
|
* new dev version
|
||||||
|
* objects: shadow (a clone's) costumes when setting its rotation coordinates
|
||||||
|
|
||||||
|
|
||||||
## 7.0.1:
|
## 7.0.1:
|
||||||
* **Notable Changes:**
|
* **Notable Changes:**
|
||||||
|
|
|
@ -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=2021-12-09"></script>
|
<script src="src/blocks.js?version=2021-12-09"></script>
|
||||||
<script src="src/threads.js?version=2021-12-15"></script>
|
<script src="src/threads.js?version=2021-12-15"></script>
|
||||||
<script src="src/objects.js?version=2021-12-13"></script>
|
<script src="src/objects.js?version=2021-12-18"></script>
|
||||||
<script src="src/scenes.js?version=2021-11-24"></script>
|
<script src="src/scenes.js?version=2021-11-24"></script>
|
||||||
<script src="src/gui.js?version=2021-12-18"></script>
|
<script src="src/gui.js?version=2021-12-18"></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*/
|
||||||
|
|
||||||
/*jshint esversion: 6*/
|
/*jshint esversion: 6*/
|
||||||
|
|
||||||
modules.objects = '2021-December-13';
|
modules.objects = '2021-December-18';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
@ -6128,6 +6128,7 @@ SpriteMorph.prototype.setRotationCenter = function (absoluteCoordinate) {
|
||||||
if (!this.costume) {
|
if (!this.costume) {
|
||||||
throw new Error('setting the rotation center requires a costume');
|
throw new Error('setting the rotation center requires a costume');
|
||||||
}
|
}
|
||||||
|
this.shadowAttribute('costumes');
|
||||||
delta = absoluteCoordinate.subtract(
|
delta = absoluteCoordinate.subtract(
|
||||||
new Point(this.xPosition(), this.yPosition())
|
new Point(this.xPosition(), this.yPosition())
|
||||||
).divideBy(this.scale).rotateBy(radians(90 - this.heading));
|
).divideBy(this.scale).rotateBy(radians(90 - this.heading));
|
||||||
|
|
Ładowanie…
Reference in New Issue