mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Swapped to use GetValue
instead.
This commit is contained in:
parent
c89f9a9fde
commit
00638ae9ee
2 changed files with 3 additions and 4 deletions
|
@ -77,6 +77,7 @@ Notes:
|
|||
* `Graphics.fillPoints` has renamed the second argument from `autoClose` to `closeShape`. There is also a new third argument `closePath`, which defaults to `true` and automatically closes the path before filling it. The `endIndex` argument is now the fourth argument, instead of the third.
|
||||
* Calling `Texture.destroy` will now call `TextureManager.removeKey` to ensure the key is removed from the manager, should you destroy a texture directly, rather than going via `TextureManager.remove`. Fix #4461 (thanks @BigZaphod)
|
||||
* `SpriteSheetFromAtlas` now adds in a `__BASE` entry for the Sprite Sheet it creates, keeping it consistent with the other frame parsers (thanks @Cirras)
|
||||
* The `from` and `to` properties in the PathFollower Config can now be used to set the span of the follow duration (thanks @kensleebos)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
|
|
|
@ -230,10 +230,8 @@ var PathFollower = new Class({
|
|||
}
|
||||
|
||||
// Override in case they've been specified in the config
|
||||
config.from = config.from || 0;
|
||||
config.to = config.to || 1;
|
||||
|
||||
// Can also read extra values out of the config:
|
||||
config.from = GetValue(config, 'from', 0);
|
||||
config.to = GetValue(config, 'to', 1);
|
||||
|
||||
var positionOnPath = GetBoolean(config, 'positionOnPath', false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue