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:**
|
||||
* **Notable Changes:**
|
||||
* **Notable Fixes:**
|
||||
* setting a clone's rotation coordinates shadows its inherited costumes
|
||||
* **Documentation Updates:**
|
||||
* **Translation Updates:**
|
||||
|
||||
### 2021-12-18
|
||||
* new dev version
|
||||
* objects: shadow (a clone's) costumes when setting its rotation coordinates
|
||||
|
||||
|
||||
## 7.0.1:
|
||||
* **Notable Changes:**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<script src="src/widgets.js?version=2021-17-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/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/gui.js?version=2021-12-18"></script>
|
||||
<script src="src/paint.js?version=2021-07-05"></script>
|
||||
|
|
|
@ -87,7 +87,7 @@ BlockVisibilityDialogMorph*/
|
|||
|
||||
/*jshint esversion: 6*/
|
||||
|
||||
modules.objects = '2021-December-13';
|
||||
modules.objects = '2021-December-18';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -6128,6 +6128,7 @@ SpriteMorph.prototype.setRotationCenter = function (absoluteCoordinate) {
|
|||
if (!this.costume) {
|
||||
throw new Error('setting the rotation center requires a costume');
|
||||
}
|
||||
this.shadowAttribute('costumes');
|
||||
delta = absoluteCoordinate.subtract(
|
||||
new Point(this.xPosition(), this.yPosition())
|
||||
).divideBy(this.scale).rotateBy(radians(90 - this.heading));
|
||||
|
|
Ładowanie…
Reference in New Issue