mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
BuildGameObject bug: origin was being set to position xy
This commit is contained in:
parent
68634a0deb
commit
e5a8600686
1 changed files with 2 additions and 2 deletions
|
@ -71,8 +71,8 @@ var BuildGameObject = function (scene, gameObject, config)
|
|||
}
|
||||
else if (origin !== null)
|
||||
{
|
||||
var ox = GetAdvancedValue(config, 'x', 0.5);
|
||||
var oy = GetAdvancedValue(config, 'y', 0.5);
|
||||
var ox = GetAdvancedValue(origin, 'x', 0.5);
|
||||
var oy = GetAdvancedValue(origin, 'y', 0.5);
|
||||
|
||||
gameObject.setOrigin(ox, oy);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue